You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This issue occurs when you have a include or extend method call inside a class/module, and an argument inside include or extend that uses a block, and define a method with parentheses inside the block. In such cases, future classes (A::C and A::D in the examples below) are missed by the parser.
This issue occurs when you have a
include
orextend
method call inside a class/module, and an argument insideinclude
orextend
that uses a block, and define a method with parentheses inside the block. In such cases, future classes (A::C
andA::D
in the examples below) are missed by the parser.Example failing code:
Removing the parentheses when defining the method is sufficient to work around this bug:
As is using a local variable for the
Module.new
result and passing that to include:Here's another failing case showing the problem is not related to
Module.new
ordo
/end
vs{
/}
:The text was updated successfully, but these errors were encountered: