diff options
author | chriseth <chris@ethereum.org> | 2019-01-21 19:03:32 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-21 19:03:32 +0800 |
commit | ea790e3b7ed445ef632ea76958538c1d084001f0 (patch) | |
tree | 7e39db9cd9aef1f031f863635ca466bef8a74d59 /test/libsolidity/syntaxTests/structs/array_calldata.sol | |
parent | da73e253988788ee0733425174e99520b320a7fd (diff) | |
parent | 610ef9f1999c1dd201a121334394b10f6ac54bc7 (diff) | |
download | dexon-solidity-ea790e3b7ed445ef632ea76958538c1d084001f0.tar.gz dexon-solidity-ea790e3b7ed445ef632ea76958538c1d084001f0.tar.zst dexon-solidity-ea790e3b7ed445ef632ea76958538c1d084001f0.zip |
Merge pull request #5806 from ethereum/calldataStructs
Disallow calldata structs.
Diffstat (limited to 'test/libsolidity/syntaxTests/structs/array_calldata.sol')
-rw-r--r-- | test/libsolidity/syntaxTests/structs/array_calldata.sol | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/libsolidity/syntaxTests/structs/array_calldata.sol b/test/libsolidity/syntaxTests/structs/array_calldata.sol new file mode 100644 index 00000000..3aac5606 --- /dev/null +++ b/test/libsolidity/syntaxTests/structs/array_calldata.sol @@ -0,0 +1,10 @@ +pragma experimental ABIEncoderV2; +contract Test { + struct S { int a; } + function f(S[] calldata) external { } + function f(S[][] calldata) external { } +} +// ---- +// Warning: (0-33): Experimental features are turned on. Do not use experimental features on live deployments. +// TypeError: (89-101): Calldata structs are not yet supported. +// TypeError: (131-145): Calldata structs are not yet supported. |