aboutsummaryrefslogblamecommitdiffstats
path: root/test/libsolidity/syntaxTests/parsing/function_type_in_expression.sol
blob: 3defb5ea939d04a3d720673da2977310986dd052 (plain) (tree)
1
2
3
4
5
6
7
8
9
               

                                                         



                                                             

                                                                                                                



                                                                                                                
contract test {
    function f(uint x, uint y) public returns (uint a) {}
    function g() public {
        function (uint, uint) internal returns (uint) f1 = f;
    }
}
// ----
// Warning: (31-37): Unused function parameter. Remove or comment out the variable name to silence this warning.
// Warning: (39-45): Unused function parameter. Remove or comment out the variable name to silence this warning.
// Warning: (63-69): Unused function parameter. Remove or comment out the variable name to silence this warning.
// Warning: (108-156): Unused local variable.
// Warning: (20-73): Function state mutability can be restricted to pure
// Warning: (78-167): Function state mutability can be restricted to pure