solidity/test/libsolidity/syntaxTests/parsing/enum_from_interface_in_library.sol
2021-04-20 17:38:29 +02:00

14 lines
256 B
Solidity

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;
}
}
// ----