solidity/test/libsolidity/syntaxTests/nameAndTypeResolution/131_enum_implicit_conversion_is_not_okay_64.sol

10 lines
278 B
Solidity
Raw Normal View History

contract test {
enum ActionChoices { GoLeft, GoRight, GoStraight, Sit }
constructor() public {
b = ActionChoices.Sit;
}
uint64 b;
}
// ----
// TypeError 7407: (115-132): Type enum test.ActionChoices is not implicitly convertible to expected type uint64.