solidity/test/libsolidity/syntaxTests/parsing/function_type_in_expression.sol

14 lines
710 B
Solidity
Raw Normal View History

2018-05-17 07:04:39 +00:00
contract test {
function f(uint x, uint y) public returns (uint a) {}
function g() public {
2018-05-17 07:04:39 +00:00
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