aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/parsing/trailing_comma_in_named_args.sol
blob: 8fc3dab833fa828fb62d6c35383fd0a809187626 (plain) (blame)
1
2
3
4
5
6
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: (159-160): Unexpected trailing comma.