aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/functionCalls
diff options
context:
space:
mode:
authorCryptomental <cryptomental.com@gmail.com>2018-07-10 20:10:09 +0800
committerCryptomental <cryptomental.com@gmail.com>2018-07-10 20:10:09 +0800
commit8c0297b400984d71978f81061b6d1d99453f143c (patch)
treef6f0c491afaff63d1237109da2b6ca723301a084 /test/libsolidity/syntaxTests/functionCalls
parenta55abb550dca6b17d74bf0b5947e1947a99e4e95 (diff)
downloaddexon-solidity-8c0297b400984d71978f81061b6d1d99453f143c.tar
dexon-solidity-8c0297b400984d71978f81061b6d1d99453f143c.tar.gz
dexon-solidity-8c0297b400984d71978f81061b6d1d99453f143c.tar.bz2
dexon-solidity-8c0297b400984d71978f81061b6d1d99453f143c.tar.lz
dexon-solidity-8c0297b400984d71978f81061b6d1d99453f143c.tar.xz
dexon-solidity-8c0297b400984d71978f81061b6d1d99453f143c.tar.zst
dexon-solidity-8c0297b400984d71978f81061b6d1d99453f143c.zip
libsolidity/syntaxTests: Add a test case for unwanted named arguments.
Refs: #4442
Diffstat (limited to 'test/libsolidity/syntaxTests/functionCalls')
-rw-r--r--test/libsolidity/syntaxTests/functionCalls/named_arguments_for_functions_that_take_arbitrary_parameters.sol7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/libsolidity/syntaxTests/functionCalls/named_arguments_for_functions_that_take_arbitrary_parameters.sol b/test/libsolidity/syntaxTests/functionCalls/named_arguments_for_functions_that_take_arbitrary_parameters.sol
new file mode 100644
index 00000000..089e1dbf
--- /dev/null
+++ b/test/libsolidity/syntaxTests/functionCalls/named_arguments_for_functions_that_take_arbitrary_parameters.sol
@@ -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.