mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Tests for basefee as identifier in inline assembly
Also added basefee to `EVMVersion::hasOpcode(...)`
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
contract C {
|
||||
function f() public view returns (uint ret) {
|
||||
assembly {
|
||||
let basefee := sload(0)
|
||||
ret := basefee
|
||||
}
|
||||
}
|
||||
}
|
||||
// ====
|
||||
// EVMVersion: =london
|
||||
// ----
|
||||
// ParserError 5568: (98-105): Cannot use builtin function name "basefee" as identifier name.
|
||||
Reference in New Issue
Block a user