aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/nameAndTypeResolution/267_invalid_args_creating_struct.sol
blob: 35671e6f12d494346352d43bc61e3f85febe52c7 (plain) (blame)
1
2
3
4
5
6
7
8
9
contract C {
    struct S { uint a; uint b; }

    function f() public {
        S memory s = S({a: 1});
    }
}
// ----
// TypeError: (94-103): Wrong argument count for struct constructor: 1 arguments given but expected 2.