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

16 lines
267 B
Solidity
Raw Normal View History

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