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
c5640fb125
Unify vocabulary related to the feature.
2022-09-28 13:08:32 +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
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
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
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
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
6c4325ca03
Add tests for ViewPureChecker with custom operators
2022-09-28 12:10:27 +02:00
wechman
c7d41fd595
Update tests after error handling adjustment
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
chriseth
3bd047f188
Using for for operators.
2022-09-28 11:32:03 +02:00
Daniel Kirchner
9a429e2300
Fix ICE on invalid tuple assignments.
2022-08-09 12:41:47 +02:00
Marenz
22c7cd22b9
Fix wrong cleanup when copying from calldata to memory
...
Co-authored-by: Kamil Śliwak <kamil.sliwak@codepoets.it>
2022-08-08 13:07:16 +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
Duc Thanh Nguyen
0a14368315
Display human readable type name in conversion error message
2022-07-06 10:49:51 -04:00
William Entriken
2a957413d0
Update naming of Mainnet
2022-06-30 16:47:11 +02:00
Mathias L. Baumann
3ed9a38abc
Merge pull request #12966 from a3d4/fix-ice-structtype-nativemembers
...
Fix ICE caused by an immutable struct with mapping
2022-06-23 16:11:28 +02:00
Ryan
3b2c6de61c
Propagate purity information for member access to foreign pure variables
2022-06-16 17:11:55 +05:30
Daniel Kirchner
416c3dc1a4
Merge pull request #13139 from ethereum/lvalueBytesPushWarning
...
Warn about multiple assignments to storage byte pushes.
2022-06-15 14:39:46 +02:00
Daniel Kirchner
16245f7b9b
Warn about multiple assignments to storage byte pushes and fix warnings about multiple storage to storage copies.
...
Co-authored-by: Kamil Śliwak <kamil.sliwak@codepoets.it>
2022-06-15 13:53:05 +02:00
Samuel Osewa
c21265f9f8
Changed error message for for Unicode character in non-unicode string literal
...
Co-authored-by: Kamil Śliwak <cameel2@gmail.com>
2022-06-15 16:12:24 +05:30
Kamil Śliwak
5375dfff9d
Refactor error/event selector tests
...
- Remove redundant semantic tests for error selector
- Consolidate semanticTests/error/ and semanticTests/errors/ dirs
- Make "selector syntax test" for errors and event an actual test for syntax rather than a copy of the same semantic test
2022-06-14 12:04:19 +02:00