diff options
author | Cryptomental <cryptomental.com@gmail.com> | 2018-07-10 20:10:09 +0800 |
---|---|---|
committer | Cryptomental <cryptomental.com@gmail.com> | 2018-07-10 20:10:09 +0800 |
commit | 8c0297b400984d71978f81061b6d1d99453f143c (patch) | |
tree | f6f0c491afaff63d1237109da2b6ca723301a084 | |
parent | a55abb550dca6b17d74bf0b5947e1947a99e4e95 (diff) | |
download | dexon-solidity-8c0297b400984d71978f81061b6d1d99453f143c.tar.gz dexon-solidity-8c0297b400984d71978f81061b6d1d99453f143c.tar.zst dexon-solidity-8c0297b400984d71978f81061b6d1d99453f143c.zip |
libsolidity/syntaxTests: Add a test case for unwanted named arguments.
Refs: #4442
-rw-r--r-- | test/libsolidity/syntaxTests/functionCalls/named_arguments_for_functions_that_take_arbitrary_parameters.sol | 7 |
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. |