mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
10 lines
214 B
Solidity
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.
|