blob: 01c5e93fc2e6e0a8e306f070d3fa0d5df5cb5498 (
plain) (
tree)
|
|
contract test {
enum ActionChoices { GoLeft, GoRight, GoStraight, Sit }
constructor() public {
a = ActionChoices.GoStraight;
}
uint256 a;
}
// ----
// TypeError: (115-139): Type enum test.ActionChoices is not implicitly convertible to expected type uint256.
|