solidity/test/libsolidity/syntaxTests/inlineAssembly/invalid/storage_nonslot.sol

13 lines
322 B
Solidity
Raw Normal View History

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".