libsolidity/syntaxTests: Add a test case for unwanted named arguments.

Refs: #4442
This commit is contained in:
Cryptomental 2018-07-10 14:10:09 +02:00
parent a55abb550d
commit 8c0297b400

View File

@ -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.