diff options
author | Daniel Kirchner <daniel@ekpyron.org> | 2018-08-08 00:44:51 +0800 |
---|---|---|
committer | Daniel Kirchner <daniel@ekpyron.org> | 2018-08-08 00:51:53 +0800 |
commit | b11e39e25ee14b2d56db86ea48e3229a7a6cad52 (patch) | |
tree | f818c974e2cfaf35a1667573837e50bd6f312022 /test/libsolidity/syntaxTests/tupleAssignments/double_storage_crash.sol | |
parent | d7756322c07634fa2ca0649a33585fc167079786 (diff) | |
download | dexon-solidity-b11e39e25ee14b2d56db86ea48e3229a7a6cad52.tar dexon-solidity-b11e39e25ee14b2d56db86ea48e3229a7a6cad52.tar.gz dexon-solidity-b11e39e25ee14b2d56db86ea48e3229a7a6cad52.tar.bz2 dexon-solidity-b11e39e25ee14b2d56db86ea48e3229a7a6cad52.tar.lz dexon-solidity-b11e39e25ee14b2d56db86ea48e3229a7a6cad52.tar.xz dexon-solidity-b11e39e25ee14b2d56db86ea48e3229a7a6cad52.tar.zst dexon-solidity-b11e39e25ee14b2d56db86ea48e3229a7a6cad52.zip |
Remove remaining instances of ``fillRight`` left over from tuple wildcards assignments.
Diffstat (limited to 'test/libsolidity/syntaxTests/tupleAssignments/double_storage_crash.sol')
-rw-r--r-- | test/libsolidity/syntaxTests/tupleAssignments/double_storage_crash.sol | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/libsolidity/syntaxTests/tupleAssignments/double_storage_crash.sol b/test/libsolidity/syntaxTests/tupleAssignments/double_storage_crash.sol new file mode 100644 index 00000000..3cff3a9a --- /dev/null +++ b/test/libsolidity/syntaxTests/tupleAssignments/double_storage_crash.sol @@ -0,0 +1,11 @@ +// This used to crash in certain compiler versions. +contract CrashContract { + struct S { uint a; } + S x; + function f() public { + (x, x) = 1(x, x); + } +} +// ---- +// TypeError: (170-177): Type is not callable +// TypeError: (170-177): Type tuple() is not implicitly convertible to expected type tuple(struct CrashContract.S storage ref,struct CrashContract.S storage ref). |