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

10 lines
164 B
Solidity

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