mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
19 lines
472 B
Solidity
19 lines
472 B
Solidity
contract C {
|
|
function f() public view returns (uint ret) {
|
|
assembly {
|
|
let difficulty := sload(0)
|
|
ret := difficulty
|
|
}
|
|
}
|
|
function g() public pure returns (uint ret) {
|
|
assembly {
|
|
function difficulty() -> r {
|
|
r := 1000
|
|
}
|
|
ret := difficulty()
|
|
}
|
|
}
|
|
}
|
|
// ----
|
|
// ParserError 5568: (98-108): Cannot use builtin function name "difficulty" as identifier name.
|