solidity/test/libsolidity/syntaxTests/enums/literal_conversion.sol

11 lines
195 B
Solidity
Raw Normal View History

contract C {
enum Test { One, Two }
function f() public pure {
Test a = Test(0);
Test b = Test(1);
Test c = Test(type(uint).max);
a; b; c;
}
}
// ----