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

11 lines
257 B
Solidity

contract C {
function x(bool) public {}
function y() public {}
function f() public {
true ? x : y;
}
}
// ----
// TypeError 1080: (106-118): True expression's type function (bool) does not match false expression's type function ().