Unreachable Code warning for abstract contract #14359
Labels
bug 🐛
low effort
There is not much implementation work to be done. The task is very easy or tiny.
low impact
Changes are not very noticeable or potential benefits are limited.
Description
When an abstract contract function calls a pure virtual function, and a concrete implementation of that function (in a concrete contracts) reverts, the
Warning: Unreachable code.
is shown which is incorrect/misleading.Environment
Steps to Reproduce
Gives the error:
However when
ChildContract1.outer()
is called, thewasCalled
is correctly set to true. The warning is misleading.The text was updated successfully, but these errors were encountered: