aboutsummaryrefslogblamecommitdiffstats
path: root/test/libsolidity/syntaxTests/parsing/enum_from_interface_in_library.sol
blob: 8d9003eb6e3abcb9230014b7e9ec4b00a2a5dde4 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12











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