solidity/test/libsolidity/syntaxTests/nameAndTypeResolution/126_enum_invalid_member_access.sol

10 lines
352 B
Solidity
Raw Normal View History

contract test {
enum ActionChoices { GoLeft, GoRight, GoStraight, Sit }
2020-06-23 12:14:24 +00:00
constructor() {
choices = ActionChoices.RunAroundWavingYourHands;
}
ActionChoices choices;
}
// ----
2020-06-23 12:14:24 +00:00
// TypeError 9582: (114-152): Member "RunAroundWavingYourHands" not found or not visible after argument-dependent lookup in type(enum test.ActionChoices).