aboutsummaryrefslogblamecommitdiffstats
path: root/test/libsolidity/syntaxTests/nameAndTypeResolution/130_enum_implicit_conversion_is_not_okay_256.sol
blob: 01c5e93fc2e6e0a8e306f070d3fa0d5df5cb5498 (plain) (tree)
1
2
3
4
5
6
7
8
9

                                                           
                          




                                     
                                                                                                             
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.