mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
10 lines
281 B
Solidity
10 lines
281 B
Solidity
contract C {
|
|
function f() public pure {
|
|
assembly { pop(chainid()) }
|
|
}
|
|
}
|
|
// ====
|
|
// EVMVersion: >=istanbul
|
|
// ----
|
|
// TypeError 2527: (67-76): Function declared as pure, but this expression (potentially) reads from the environment or state and thus requires "view".
|