Move syntax tests for named arguments from namedAndTypeResolution/ to functionCalls/

This commit is contained in:
Kamil Śliwak
2020-09-17 17:29:28 +02:00
parent 7a5957512c
commit dc62d763eb
4 changed files with 0 additions and 0 deletions
@@ -0,0 +1,11 @@
contract test {
function a(uint a, uint b) public returns (uint r) {
r = a + b;
}
function b() public returns (uint r) {
r = a({a: 1});
}
}
// ----
// Warning 2519: (31-37): This declaration shadows an existing declaration.
// TypeError 6160: (153-162): Wrong argument count for function call: 1 arguments given but expected 2.