solidity/test/libsolidity/syntaxTests/inlineAssembly/storage_reference_on_function.sol

10 lines
215 B
Solidity

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