solidity/test/libsolidity/syntaxTests/nameAndTypeResolution/126_enum_invalid_member_access.sol
2020-07-07 12:16:18 +02:00

10 lines
352 B
Solidity

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