solidity/test/libsolidity/semanticTests/structs/struct_named_constructor.sol

15 lines
173 B
Solidity
Raw Normal View History

contract C {
struct S {
uint256 a;
bool x;
}
S public s;
2020-06-23 12:14:24 +00:00
constructor() {
s = S({a: 1, x: true});
}
}
// ----
// s() -> 1, true