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

10 lines
155 B
Solidity

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