solidity/test/libsolidity/semanticTests/enums/using_inherited_enum.sol
2020-03-19 14:42:25 +01:00

14 lines
182 B
Solidity

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