File tree 2 files changed +13
-1
lines changed
compiler/src/dotty/tools/dotc/typer
2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -401,7 +401,7 @@ trait QuotesAndSplices {
401
401
override def apply (tp : Type ): Type = tp match {
402
402
case tp : TypeRef =>
403
403
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) )
405
405
case tp => mapOver(tp)
406
406
}
407
407
}
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