aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/nameAndTypeResolution/285_conditional_expression_with_different_function_type.sol
blob: 963fb7da6bbc96ff819752bf1dfbbeac6ad0eccd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
contract C {
    function x(bool) public {}
    function y() public {}

    function f() public {
        true ? x : y;
    }
}
// ----
// TypeError: (106-118): True expression's type function (bool) doesn't match false expression's type function ().