solidity/test/libsolidity/syntaxTests/nameAndTypeResolution/375_inline_assembly_unbalanced_two_stack_load.sol
2018-08-06 12:03:00 +01:00

9 lines
220 B
Solidity

contract c {
uint8 x;
function f() public {
assembly { pop(x) }
}
}
// ----
// TypeError: (75-76): Only local variables are supported. To access storage variables, use the _slot and _offset suffixes.