solidity/test/libsolidity/semanticTests/enums/using_inherited_enum.sol

14 lines
182 B
Solidity
Raw Normal View History

contract base {
enum Choice {A, B, C}
}
contract test is base {
function answer() public returns (Choice _ret) {
_ret = Choice.B;
}
}
// ----
// answer() -> 1