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

13 lines
196 B
Solidity
Raw Normal View History

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