solidity/test/libsolidity/syntaxTests/parsing/enum_inheritance_interface.sol

10 lines
158 B
Solidity

interface I {
enum Direction { Left, Right }
}
contract D is I {
function f() public pure returns (Direction) {
return Direction.Left;
}
}