aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/nameAndTypeResolution/018_forward_function_reference.sol
blob: fd9ab7ed35403e40eebdda345d9e6ddd41da2c40 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
contract First {
    function fun() public returns (bool) {
        return Second(1).fun(1, true, 3) > 0;
    }
}
contract Second {
    function fun(uint, bool, uint) public returns (uint) {
        if (First(2).fun() == true) return 1;
    }
}