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

13 lines
181 B
Solidity

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