mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
11 lines
502 B
Solidity
11 lines
502 B
Solidity
|
contract test {
|
||
|
enum ActionChoices { GoLeft, GoRight, GoStraight, Sit }
|
||
|
function test() public {
|
||
|
choices = ActionChoices.RunAroundWavingYourHands;
|
||
|
}
|
||
|
ActionChoices choices;
|
||
|
}
|
||
|
// ----
|
||
|
// Warning: (80-168): Defining constructors as functions with the same name as the contract is deprecated. Use "constructor(...) { ... }" instead.
|
||
|
// TypeError: (123-161): Member "RunAroundWavingYourHands" not found or not visible after argument-dependent lookup in type(enum test.ActionChoices)
|