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 f979b3b commit 505eecfCopy full SHA for 505eecf
libsolidity/analysis/SyntaxChecker.cpp
@@ -195,6 +195,14 @@ void SyntaxChecker::endVisit(ModifierDefinition const& _modifier)
195
{
196
if (_modifier.isImplemented() && !m_placeholderFound)
197
m_errorReporter.syntaxError(2883_error, _modifier.body().location(), "Modifier body does not contain '_'.");
198
+
199
+ if (_modifier.markedVirtual())
200
+ m_errorReporter.warning(
201
+ 8429_error,
202
+ _modifier.location(),
203
+ "Virtual modifiers are deprecated and scheduled for removal in the next breaking version (0.9)."
204
+ );
205
206
m_placeholderFound = false;
207
}
208
0 commit comments