solidity/test/libsolidity/semanticTests/structs/struct_named_constructor.sol
2020-03-19 14:42:25 +01: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