solidity/test/libsolidity/semanticTests/structs/struct_named_constructor.sol
2023-05-11 10:56:55 -05:00

14 lines
172 B
Solidity

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