diff options
Diffstat (limited to 'test/libsolidity/syntaxTests/parsing/enum_inheritance_contract.sol')
-rw-r--r-- | test/libsolidity/syntaxTests/parsing/enum_inheritance_contract.sol | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/libsolidity/syntaxTests/parsing/enum_inheritance_contract.sol b/test/libsolidity/syntaxTests/parsing/enum_inheritance_contract.sol new file mode 100644 index 00000000..e5b98352 --- /dev/null +++ b/test/libsolidity/syntaxTests/parsing/enum_inheritance_contract.sol @@ -0,0 +1,9 @@ +contract C { + enum Direction { Left, Right } +} + +contract D is C { + function f() public pure returns (Direction) { + return Direction.Left; + } +} |