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

7 lines
240 B
Solidity

contract test {
function a(uint a, uint b, uint c) returns (uint r) { r = a * 100 + b * 10 + c * 1; }
function b() returns (uint r) { r = a({a: 1, b: 2, c: 3, }); }
}
// ----
// ParserError 2074: (159-160=','): Unexpected trailing comma.