solidity/test/libsolidity/syntaxTests/nameAndTypeResolution/282_invalid_different_types_for_conditional_expression.sol
2020-07-06 13:44:33 +02:00

8 lines
182 B
Solidity

contract C {
function f() public {
true ? true : 2;
}
}
// ----
// TypeError 1080: (47-62): True expression's type bool does not match false expression's type uint8.