Commit Graph
1361 Commits
Author SHA1 Message Date
wechman 5cf88593fd Add userDefinedFunctionType helper function 2022-09-28 13:09:30 +02:00
wechman 6724455b16 Merge type errors 8112 and 7617. 2022-09-28 13:09:30 +02:00
wechman d730e92dde Rename Type::userDefinedOperator to Type::operatorDefinition 2022-09-28 13:09:30 +02:00
wechman 7983167732 Code adjustment after review 2022-09-28 13:09:30 +02:00
wechman 9ce1ded86f Updates after code review 2022-09-28 13:09:29 +02:00
wechman ea5309a9e6 Update error message of 4907_error 2022-09-28 13:09:16 +02:00
wechman cdbc06419f Updates after code review 2022-09-28 13:09:16 +02:00
wechman 8bb8373436 Fix the using directive implicit conversion error message. 2022-09-28 13:09:16 +02:00
wechman 1a8564545e Minor fixes after code review 2022-09-28 13:09:15 +02:00
wechman c507d24a78 OperationAnnotation::userDefinedFunction can be set only once 2022-09-28 13:09:13 +02:00
wechman 27249cfa52 Update 2271 and 5653 error messages to mention the errors are related to the binary operator. 2022-09-28 13:08:32 +02:00
wechman 697d279165 Rename unctionType::bound() to unctionType::boundToType() 2022-09-28 13:08:32 +02:00
wechman c5640fb125 Unify vocabulary related to the feature. 2022-09-28 13:08:32 +02:00
wechman 6d710920c5 CFGNode stores function definition 2022-09-28 13:08:30 +02:00
wechman 5572d3aed8 Adjustments after review 2022-09-28 13:07:59 +02:00
wechman eefb107e4d Update "using for" directive type checking 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 e0c688d55d Add user operator tests for builtin types 2022-09-28 13:07:58 +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 70255f8776 Revert "Update OperationAnnotation to use SetOnce for userDefinedFunction"
This reverts commit 29707c7b9a4884f0a5a8ada47cce4859401c8d53.
2022-09-28 13:07:57 +02:00
wechman d124f83b88 Update OperationAnnotation to use SetOnce for userDefinedFunction 2022-09-28 13:07:12 +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 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 a8bf1f255d 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 43a612e420 Fix control flow check for unary operators 2022-09-28 13:06:20 +02:00
wechman 8307b670cb Handle not unique operators for user-defined type. 2022-09-28 12:10:27 +02:00
wechman beae1e6263 Disallow overriding operators for enums 2022-09-28 12:10:27 +02:00
wechman 275a43068c Update ViewPureChecker 2022-09-28 12:10:27 +02:00
wechman c274d07a73 Remove out of date TODOs 2022-09-28 12:05:41 +02:00
wechman cf82accb14 Fix binary operation type checking function 2022-09-28 12:05:41 +02:00
wechman 73d9146077 Fix for ControlFlowBuilder 2022-09-28 12:05:41 +02:00
wechman 7fedb63dd3 Adjust type checking 2022-09-28 12:05:41 +02:00
wechman 56bcb525bc Unary operators with using for directive fix 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
chriseth 3bd047f188 Using for for operators. 2022-09-28 11:32:03 +02:00
Alex Beregszaszi 725253551e Improve FunctionSelector helpers 2022-09-27 17:58:32 +02:00
Marenz f7cc29bec1 Add std:: qualifier to move() calls 2022-08-30 11:12:15 +02:00
Daniel Kirchner 9a429e2300 Fix ICE on invalid tuple assignments. 2022-08-09 12:41:47 +02:00
Nikola Matic 40de2b0442 Add full stops to error messages 2022-08-05 09:52:48 +02:00
Duc Thanh Nguyen a9e03f5e4a Fix out-of-range compiler crash for nested tuple assignment involving
outer unary tuple
2022-08-04 12:45:46 -04:00
Matheus Aguiar 9acf693aa2 Fixed bad cast when abiEncodeCall receives a tuple from a function. 2022-08-03 18:48:38 -03:00
Duc Thanh Nguyen 5072472917 Fix abi.encodeCall checks 2022-07-25 12:40:54 -04:00
chriseth e2675002ca Settings struct for name resolution. 2022-07-14 17:22:17 +02:00
Duc Thanh Nguyen 0a14368315 Display human readable type name in conversion error message 2022-07-06 10:49:51 -04:00