AssertionError: asTerm called on not-at-Term val
when using local methods inside a by-name closure in super-class constructor parameter
#8846
Labels
Uh oh!
There was an error while loading. Please reload this page.
Minimized code
Related bug in scalac: scala/bug#11969
Output
Expectation
In Scalac this bug can be worked around by wrapping the block with
().pipe {_ => ... }
, however, this doesn't help in dotty: https://scastie.scala-lang.org/mpRzPhuEQCun8oJTFEu8PwThe text was updated successfully, but these errors were encountered: