solidity/test/libsolidity/syntaxTests/tupleAssignments/double_storage_crash.sol
2022-04-01 23:41:18 -05:00

11 lines
259 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 5704: (170-177='1(x, x)'): Type is not callable