aboutsummaryrefslogblamecommitdiffstats
path: root/test/libsolidity/syntaxTests/nameAndTypeResolution/220_struct_constructor.sol
blob: 50585c110dd3194ebfffff995871a70e2ee2bb95 (plain) (tree)
1
2
3
4
5
6
7
8
9








                                                                         
contract C {
    struct S { uint a; bool x; }
    function f() public {
        S memory s = S(1, true);
    }
}
// ----
// Warning: (80-90): Unused local variable.
// Warning: (50-110): Function state mutability can be restricted to pure