2020-03-09 21:14:07 +00:00
|
|
|
contract c {
|
|
|
|
enum Truth {False, True}
|
|
|
|
|
|
|
|
function test() public returns (uint256) {
|
2020-10-26 10:01:18 +00:00
|
|
|
return uint256(Truth(uint8(0x1)));
|
2020-03-09 21:14:07 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// ====
|
|
|
|
// compileViaYul: also
|
|
|
|
// ----
|
|
|
|
// test() -> 1
|