solidity/test/libsolidity/syntaxTests/tupleAssignments/double_storage_crash.sol

11 lines
244 B
Solidity

// 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