mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
13 lines
322 B
Solidity
13 lines
322 B
Solidity
contract test {
|
|
uint x = 1;
|
|
function f() public {
|
|
assembly {
|
|
let t := x.length
|
|
x.length := 2
|
|
}
|
|
}
|
|
}
|
|
// ----
|
|
// TypeError 4656: (98-106): State variables only support ".slot" and ".offset".
|
|
// TypeError 4656: (119-127): State variables only support ".slot" and ".offset".
|