File tree Expand file tree Collapse file tree 2 files changed +13
-1
lines changed
compiler/src/dotty/tools/dotc/typer Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -401,7 +401,7 @@ trait QuotesAndSplices {
401401 override def apply (tp : Type ): Type = tp match {
402402 case tp : TypeRef =>
403403 val tp1 = if (tp.typeSymbol.isTypeSplice) tp.dealias else tp
404- typeBindings.get(tp1.typeSymbol).fold(tp)(_.symbol.typeRef)
404+ mapOver( typeBindings.get(tp1.typeSymbol).fold(tp)(_.symbol.typeRef) )
405405 case tp => mapOver(tp)
406406 }
407407 }
Original file line number Diff line number Diff line change 1+ import scala .quoted ._
2+
3+ trait Coll [A ] {
4+ type C [X ] // must be abstract
5+ def map [B ]: C [Any ] // needs both the type param and a return type that refers to C
6+ }
7+
8+ object QuoteTest {
9+ def compile (expr : Expr [Any ])(using QuoteContext ): Expr [Any ] = expr match {
10+ case ' { (??? : Coll [$y]).map[$b] } => ???
11+ }
12+ }
You can’t perform that action at this time.
0 commit comments