Scala 3: Compiler crashes with MatchError on an erroneous quoted pattern with an import

Confirmed · low · Crash

An inline match in a non-inline method has a quoted pattern with an unresolved import. Error recovery then calls tpd.singleton on an error type, so the compiler crashes with MatchError instead of reporting the unresolved import.

Found: ; reported: ; status since: . Reporter: Mike Murunov

Page for this report · Public report

Thanks a lot for the minimization and the explanations @haskiindahouse!

Open in the showcase. Record generated .