diff options
author | Erik Kundt <bitshift@posteo.org> | 2018-05-16 23:18:30 +0800 |
---|---|---|
committer | Erik Kundt <bitshift@posteo.org> | 2018-05-30 23:43:20 +0800 |
commit | 98d52beba3f989b3a5eeaba2d257de8de5df60a7 (patch) | |
tree | 32b6d25005a1e6585fac536a7d58660aadd6cc5c /test/libsolidity/syntaxTests/array/array_pop_arg.sol | |
parent | 34b5eca1f8d9a8f04db20139601c6e944532f4e4 (diff) | |
download | dexon-solidity-98d52beba3f989b3a5eeaba2d257de8de5df60a7.tar dexon-solidity-98d52beba3f989b3a5eeaba2d257de8de5df60a7.tar.gz dexon-solidity-98d52beba3f989b3a5eeaba2d257de8de5df60a7.tar.bz2 dexon-solidity-98d52beba3f989b3a5eeaba2d257de8de5df60a7.tar.lz dexon-solidity-98d52beba3f989b3a5eeaba2d257de8de5df60a7.tar.xz dexon-solidity-98d52beba3f989b3a5eeaba2d257de8de5df60a7.tar.zst dexon-solidity-98d52beba3f989b3a5eeaba2d257de8de5df60a7.zip |
Adds syntax tests, documentation and changelog entry.
Refines comment for array utility function.
Diffstat (limited to 'test/libsolidity/syntaxTests/array/array_pop_arg.sol')
-rw-r--r-- | test/libsolidity/syntaxTests/array/array_pop_arg.sol | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/libsolidity/syntaxTests/array/array_pop_arg.sol b/test/libsolidity/syntaxTests/array/array_pop_arg.sol new file mode 100644 index 00000000..bb7803e2 --- /dev/null +++ b/test/libsolidity/syntaxTests/array/array_pop_arg.sol @@ -0,0 +1,8 @@ +contract C { + uint[] data; + function test() public { + data.pop(5); + } +} +// ---- +// TypeError: (65-76): Wrong argument count for function call: 1 arguments given but expected 0. |