mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Adds storage_reference.sol syntax test
This commit is contained in:
parent
b2f0d1db43
commit
d62476fb1f
@ -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.
|
Loading…
Reference in New Issue
Block a user