solidity/test/libsolidity/syntaxTests/functionCalls/named_arguments_empty.sol
2022-04-01 23:41:18 -05:00

13 lines
458 B
Solidity

contract test {
function a(uint a, uint b) public returns (uint r) {
r = a + b;
}
function b() public returns (uint r) {
r = a({});
}
}
// ----
// Warning 2519: (31-37='uint a'): This declaration shadows an existing declaration.
// Warning 2519: (39-45='uint b'): This declaration shadows an existing declaration.
// TypeError 6160: (153-158='a({})'): Wrong argument count for function call: 0 arguments given but expected 2.