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 crashes the compiler. Tested with 0.25.0 and 0.26.0-RC1.
Minimized code
importscala.quoted._sealedtraitColl[A] {
typeC[X] // must be abstractdefmap[B]:C[Any] // needs both the type param and a return type that refers to C
}
objectQuoteTest {
defcompile[T:Type](expr: Expr[T])(usingQuoteContext):Expr[Any] = expr match {
case'{ ($coll: Coll[$foo]).map[$b] } =>'{ null }
}
}
importscala.quoted._traitColl[A] {
typeC[X] // must be abstractdefmap[B]:C[Any] // needs both the type param and a return type that refers to C
}
objectQuoteTest {
defcompile(expr: Expr[Any])(usingQuoteContext):Expr[Any] = expr match {
case'{ (???:Coll[$y]).map[$b] } =>???
}
}
This crashes the compiler. Tested with 0.25.0 and 0.26.0-RC1.
Minimized code
Output
The text was updated successfully, but these errors were encountered: