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

10 lines
271 B
Solidity
Raw Normal View History

contract test {
enum ActionChoices { GoLeft, GoRight, GoStraight, Sit }
2020-06-23 12:14:24 +00:00
constructor() {
b = ActionChoices.Sit;
}
uint64 b;
}
// ----
2020-06-23 12:14:24 +00:00
// TypeError 7407: (108-125): Type enum test.ActionChoices is not implicitly convertible to expected type uint64.