aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/specialFunctions/abidecode/abi_decode_calldata.sol
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2018-08-15 18:31:26 +0800
committerGitHub <noreply@github.com>2018-08-15 18:31:26 +0800
commit6c0261e6abdac4370404d8782c5ab9759dd5ae13 (patch)
treeba9ed829543740457f39994a66f8c51681ddc0fb /test/libsolidity/syntaxTests/specialFunctions/abidecode/abi_decode_calldata.sol
parentc7d2af2637e061de43cc6c53e12bf35d1ac66387 (diff)
parent6e139f7d1a82e90e3818d7f4475745f441c1d6f2 (diff)
downloaddexon-solidity-6c0261e6abdac4370404d8782c5ab9759dd5ae13.tar
dexon-solidity-6c0261e6abdac4370404d8782c5ab9759dd5ae13.tar.gz
dexon-solidity-6c0261e6abdac4370404d8782c5ab9759dd5ae13.tar.bz2
dexon-solidity-6c0261e6abdac4370404d8782c5ab9759dd5ae13.tar.lz
dexon-solidity-6c0261e6abdac4370404d8782c5ab9759dd5ae13.tar.xz
dexon-solidity-6c0261e6abdac4370404d8782c5ab9759dd5ae13.tar.zst
dexon-solidity-6c0261e6abdac4370404d8782c5ab9759dd5ae13.zip
Merge pull request #4390 from ethereum/abidecode
Add abi.decode
Diffstat (limited to 'test/libsolidity/syntaxTests/specialFunctions/abidecode/abi_decode_calldata.sol')
-rw-r--r--test/libsolidity/syntaxTests/specialFunctions/abidecode/abi_decode_calldata.sol8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/libsolidity/syntaxTests/specialFunctions/abidecode/abi_decode_calldata.sol b/test/libsolidity/syntaxTests/specialFunctions/abidecode/abi_decode_calldata.sol
new file mode 100644
index 00000000..28d2f2e7
--- /dev/null
+++ b/test/libsolidity/syntaxTests/specialFunctions/abidecode/abi_decode_calldata.sol
@@ -0,0 +1,8 @@
+// This restriction might be lifted in the future
+contract C {
+ function f() public pure {
+ abi.decode("abc", (bytes calldata));
+ }
+}
+// ----
+// ParserError: (121-129): Expected ',' but got 'calldata'