Adds storage_reference.sol syntax test

This commit is contained in:
D-Nice 2018-06-27 19:42:46 -04:00 committed by GitHub
parent b2f0d1db43
commit d62476fb1f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -0,0 +1,11 @@
contract C {
uint[] x;
function() {
uint[] storage y = x;
assembly {
pop(y)
}
}
}
// ----
// TypeError: (110-111): You have to use the _slot or _offset suffix to access storage reference variables.