mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
More general minimum EVM version check
This commit is contained in:
parent
aceb9dc5d1
commit
5f6e606e4d
@ -185,9 +185,7 @@ bool SyntaxChecker::visit(PragmaDirective const& _pragma)
|
|||||||
m_errorReporter.syntaxError(
|
m_errorReporter.syntaxError(
|
||||||
6634_error,
|
6634_error,
|
||||||
_pragma.location(),
|
_pragma.location(),
|
||||||
"\"pragma stdlib\" requires Constantinople EVM version at the minimum (selected EVM version is " +
|
"\"pragma stdlib\" requires Constantinople EVM version at the minimum."
|
||||||
m_evmVersion.name() +
|
|
||||||
")."
|
|
||||||
);
|
);
|
||||||
m_sourceUnit->annotation().useStdlib = true;
|
m_sourceUnit->annotation().useStdlib = true;
|
||||||
}
|
}
|
||||||
|
@ -2,3 +2,4 @@ pragma stdlib;
|
|||||||
// ====
|
// ====
|
||||||
// EVMVersion: <constantinople
|
// EVMVersion: <constantinople
|
||||||
// ----
|
// ----
|
||||||
|
// SyntaxError 6634: (0-14): "pragma stdlib" requires Constantinople EVM version at the minimum.
|
||||||
|
Loading…
Reference in New Issue
Block a user