solidity/test/libsolidity/syntaxTests/functionTypes/function_type_named_call.sol
2020-07-23 14:55:32 +02:00

10 lines
279 B
Solidity

contract C {
function f() pure public {
function(uint a) returns (uint) x;
x({a:2});
}
}
// ----
// Warning 6162: (61-67): Naming function type parameters is deprecated.
// TypeError 4974: (95-103): Named argument "a" does not match function declaration.