solidity/test/libsolidity/syntaxTests/revertStatement/using_struct.sol
2022-04-01 23:41:18 -05:00

9 lines
161 B
Solidity

struct S { uint x; }
contract C {
function f() public {
revert S(10);
}
}
// ----
// TypeError 1885: (75-76='S'): Expression has to be an error.