solidity/test/libsolidity/syntaxTests/parsing/enum_inheritance_contract.sol
2021-04-20 17:38:29 +02:00

11 lines
165 B
Solidity

contract C {
enum Direction { Left, Right }
}
contract D is C {
function f() public pure returns (Direction) {
return Direction.Left;
}
}
// ----