We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 26e2f2e commit d2c985cCopy full SHA for d2c985c
libsolidity/analysis/SyntaxChecker.cpp
@@ -151,8 +151,8 @@ bool SyntaxChecker::visit(PragmaDirective const& _pragma)
151
m_sourceUnit->annotation().useABICoderV2 = (_pragma.literals()[1] == "v2");
152
153
if (
154
- m_sourceUnit->annotation().useABICoderV2.set() &&
155
- !*m_sourceUnit->annotation().useABICoderV2
+ _pragma.literals().size() > 1 &&
+ _pragma.literals()[1] == "v1"
156
)
157
m_errorReporter.warning(
158
9511_error,
0 commit comments