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

13 lines
248 B
Solidity
Raw Normal View History

interface I {
enum Direction { Left, Right }
}
library L {
function f() public pure returns (I.Direction) {
return I.Direction.Left;
}
function g() internal pure returns (I.Direction) {
return I.Direction.Left;
}
}