solidity/test/libsolidity/syntaxTests/parsing/enum_valid_declaration.sol

8 lines
142 B
Solidity
Raw Normal View History

2018-05-17 07:04:39 +00:00
contract c {
enum validEnum { Value1, Value2, Value3, Value4 }
2020-06-23 12:14:24 +00:00
constructor() {
2018-05-17 07:04:39 +00:00
a = validEnum.Value3;
}
validEnum a;
}