rewriter::Flatten pulls sig
call out of method body even if it's not actually a method signature
#7768
Labels
sig
call out of method body even if it's not actually a method signature
#7768
Input
→ View on sorbet.run
Observed output
Expected behavior
Sorbet pulls the
x.sig { void }
call out to the top level of the class definition in an attempt to flatten all nested method definitions. That's not what should have happened—this method call doesn't actually match what asig
would look like, nor is there a call to a method immediately after thissig
call.The text was updated successfully, but these errors were encountered: