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

10 lines
554 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) {}
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: (20-73): Function state mutability can be restricted to pure