Commit Graph

28 Commits

Author SHA1 Message Date
wechman
eefb107e4d Update "using for" directive type checking 2022-09-28 13:07:59 +02:00
wechman
b7d5d6bfaf Additional tests for using for directive 2022-09-28 13:07:59 +02:00
wechman
9badef916e Additional tests for user type operators 2022-09-28 13:07:59 +02:00
wechman
f6543f772d Test for binding user type operator to error 2022-09-28 13:07:59 +02:00
wechman
1218b207ef Add test cases for user type operators with global using for directive 2022-09-28 13:07:59 +02:00
wechman
bd758a5e35 Call user defined type operator by member function 2022-09-28 13:07:59 +02:00
wechman
616988da15 Test case for user operator bind a bound free function 2022-09-28 13:07:59 +02:00
wechman
b5f61285b7 Test cases for bindng operators to builtin functions 2022-09-28 13:07:59 +02:00
wechman
6feb8aea73 Rework error handlig of user type operators 2022-09-28 13:07:58 +02:00
wechman
4fac7b54b3 Additional tests for user operators with calldata and storage parameters 2022-09-28 13:07:58 +02:00
wechman
b860561814 Simplify Type::userDefinedOperator function 2022-09-28 13:07:58 +02:00
wechman
e3f5c4c1b5 An extra assert for no operator for libraries in ASTJsonExporter::visit 2022-09-28 13:07:58 +02:00
wechman
c89eecf52b Update tests after code review 2022-09-28 13:07:58 +02:00
wechman
9e1ba093d5 Minor changes after code review 2022-09-28 13:07:58 +02:00
wechman
6fcd717ab4 More descriptive error message in TypeChecker::visit(UnaryOperation) 2022-09-28 13:06:25 +02:00
wechman
e001f8346b Update message of TypeError 5172 2022-09-28 13:06:25 +02:00
wechman
fee6b5f96c Type::userDefinedOperator takes return parameters into account 2022-09-28 13:06:25 +02:00
wechman
7d12eb5745 Add user operator test cases 2022-09-28 13:06:25 +02:00
wechman
3be5114fb0 Update code to review comments 2022-09-28 13:06:25 +02:00
wechman
c1dc8df9c9 Adjust code to review findings 2022-09-28 13:06:25 +02:00
wechman
1084a34f28 Add control flow tests for "and" and "or" operators 2022-09-28 13:06:25 +02:00
wechman
6c4325ca03 Add tests for ViewPureChecker with custom operators 2022-09-28 12:10:27 +02:00
wechman
8307b670cb Handle not unique operators for user-defined type. 2022-09-28 12:10:27 +02:00
wechman
8272da0aea Add test: operator_parameter_with_wrong_data_location 2022-09-28 12:10:27 +02:00
wechman
beae1e6263 Disallow overriding operators for enums 2022-09-28 12:10:27 +02:00
wechman
7fedb63dd3 Adjust type checking 2022-09-28 12:05:41 +02:00
wechman
6482f5bb17 Use user defined function return type as user defined operator type 2022-09-28 11:32:03 +02:00
Matheus Aguiar
58d19a51c6 Added few tests. 2022-09-28 11:32:03 +02:00