solidity/test/libsolidity/syntaxTests/nameAndTypeResolution/378_inline_assembly_storage_in_modifiers.sol

14 lines
282 B
Solidity
Raw Normal View History

contract test {
uint x = 1;
modifier m {
assembly {
x := 2
}
_;
}
function f() public m {
}
}
// ----
2018-08-06 10:42:39 +00:00
// TypeError: (80-81): Only local variables are supported. To access storage variables, use the _slot and _offset suffixes.