1 2 3 4 5 6 7
contract C { function f() public { true ? true : 2; } } // ---- // TypeError: (47-62): True expression's type bool doesn't match false expression's type uint8.