solidity/test/libsolidity/semanticTests/extracted/struct_named_constructor.sol
2020-03-18 11:56:43 -05:00

15 lines
180 B
Solidity

contract C {
struct S {
uint256 a;
bool x;
}
S public s;
constructor() public {
s = S({a: 1, x: true});
}
}
// ----
// s() -> 1, true