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

11 lines
165 B
Solidity
Raw Permalink Normal View History

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