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

12 lines
291 B
Solidity

contract test {
uint[] r;
function f() public {
uint[] storage a = r;
assembly {
function g() -> x { x := a_offset }
}
}
}
// ----
// DeclarationError: (142-150): Cannot access local Solidity variables from inside an inline assembly function.