solidity/test/libsolidity/syntaxTests/inlineAssembly/storage_reference_on_function.sol
2022-04-01 23:41:18 -05:00

10 lines
233 B
Solidity

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