mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
libsolidity/syntaxTests: Add a test case for unwanted named arguments.
Refs: #4442
This commit is contained in:
parent
a55abb550d
commit
8c0297b400
@ -0,0 +1,7 @@
|
|||||||
|
contract C {
|
||||||
|
function f() pure public {
|
||||||
|
abi.encodeWithSelector({selector:"abc"});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// ----
|
||||||
|
// TypeError: (52-92): Named arguments cannot be used for functions that take arbitrary parameters.
|
Loading…
Reference in New Issue
Block a user