solidity/test/libsolidity/semanticTests/enums/constructing_enums_from_ints.sol
2022-05-19 20:23:28 +02:00

13 lines
197 B
Solidity

contract c {
enum Truth {False, True}
function test() public returns (uint256) {
return uint256(Truth(uint8(0x1)));
}
}
// ====
// compileToEwasm: also
// ----
// test() -> 1