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

10 lines
157 B
Solidity
Raw Normal View History

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