aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/nameAndTypeResolution/282_invalid_different_types_for_conditional_expression.sol
blob: e4e75e3f294ec4280303d1b334277ca98b0f4fa4 (plain) (blame)
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.