solidity/test/libsolidity/syntaxTests/types/var_decl_val_mismatch.sol

17 lines
388 B
Solidity
Raw Normal View History

contract n
{
2020-04-07 17:31:48 +00:00
fallback() external
{
// Used to cause a segfault
2020-07-15 17:50:59 +00:00
(uint x, ) = (1);
(uint z) = ();
assembly {
2020-07-15 17:50:59 +00:00
mstore(x, z)
}
}
}
// ----
2020-07-15 17:50:59 +00:00
// TypeError 7364: (69-85): Different number of components on the left hand side (2) than on the right hand side (1).
// TypeError 7364: (89-102): Different number of components on the left hand side (1) than on the right hand side (0).