solidity/test/libsolidity/syntaxTests/inlineAssembly/storage_reference_on_function.sol
2020-01-08 16:12:06 +01:00

10 lines
214 B
Solidity

contract C {
function f() pure public {
assembly {
let x := f_slot
}
}
}
// ----
// TypeError: (84-90): The suffixes "_offset" and "_slot" can only be used on storage variables.