solidity/test/libsolidity/syntaxTests/functionTypes/function_type_named_call.sol

10 lines
279 B
Solidity
Raw Normal View History

2020-07-17 08:22:30 +00:00
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.