diff options
author | chriseth <chris@ethereum.org> | 2018-08-07 23:20:05 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-07 23:20:05 +0800 |
commit | d7756322c07634fa2ca0649a33585fc167079786 (patch) | |
tree | 2b28b52fe554d187c30787a34b84ea0dba56faf3 /test/libsolidity/syntaxTests/parsing/enum_from_library.sol | |
parent | 901550e473f001d2c6666870d71dbf0b9ff8c1ff (diff) | |
parent | 34a711a14daf9874061a83401bf28a57b3abf1b1 (diff) | |
download | dexon-solidity-d7756322c07634fa2ca0649a33585fc167079786.tar dexon-solidity-d7756322c07634fa2ca0649a33585fc167079786.tar.gz dexon-solidity-d7756322c07634fa2ca0649a33585fc167079786.tar.bz2 dexon-solidity-d7756322c07634fa2ca0649a33585fc167079786.tar.lz dexon-solidity-d7756322c07634fa2ca0649a33585fc167079786.tar.xz dexon-solidity-d7756322c07634fa2ca0649a33585fc167079786.tar.zst dexon-solidity-d7756322c07634fa2ca0649a33585fc167079786.zip |
Merge pull request #4731 from ethereum/interface-enum
Allow enums in interfaces
Diffstat (limited to 'test/libsolidity/syntaxTests/parsing/enum_from_library.sol')
-rw-r--r-- | test/libsolidity/syntaxTests/parsing/enum_from_library.sol | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/libsolidity/syntaxTests/parsing/enum_from_library.sol b/test/libsolidity/syntaxTests/parsing/enum_from_library.sol new file mode 100644 index 00000000..ab762a82 --- /dev/null +++ b/test/libsolidity/syntaxTests/parsing/enum_from_library.sol @@ -0,0 +1,9 @@ +library L { + enum Direction { Left, Right } +} + +contract D { + function f() public pure returns (L.Direction) { + return L.Direction.Left; + } +} |