2020-03-09 21:14:07 +00:00
|
|
|
contract base {
|
|
|
|
enum Choice {A, B, C}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
contract test is base {
|
|
|
|
function answer() public returns (Choice _ret) {
|
|
|
|
_ret = Choice.B;
|
|
|
|
}
|
|
|
|
}
|
2020-04-16 12:21:12 +00:00
|
|
|
// ====
|
|
|
|
// compileViaYul: also
|
2020-03-09 21:14:07 +00:00
|
|
|
// ----
|
|
|
|
// answer() -> 1
|