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_inheritance_interface.sol | |
parent | 901550e473f001d2c6666870d71dbf0b9ff8c1ff (diff) | |
parent | 34a711a14daf9874061a83401bf28a57b3abf1b1 (diff) | |
download | dexon-solidity-d7756322c07634fa2ca0649a33585fc167079786.tar.gz 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_inheritance_interface.sol')
-rw-r--r-- | test/libsolidity/syntaxTests/parsing/enum_inheritance_interface.sol | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/libsolidity/syntaxTests/parsing/enum_inheritance_interface.sol b/test/libsolidity/syntaxTests/parsing/enum_inheritance_interface.sol new file mode 100644 index 00000000..75858744 --- /dev/null +++ b/test/libsolidity/syntaxTests/parsing/enum_inheritance_interface.sol @@ -0,0 +1,9 @@ +interface I { + enum Direction { Left, Right } +} + +contract D is I { + function f() public pure returns (Direction) { + return Direction.Left; + } +} |