We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ed81e34 + 370f791 commit b566cb4Copy full SHA for b566cb4
compiler/src/dotty/tools/dotc/staging/HealType.scala
@@ -35,7 +35,7 @@ class HealType(pos: SrcPos)(using Context) extends TypeMap {
35
case tp: TermRef =>
36
val inconsistentRoot = levelInconsistentRootOfPath(tp)
37
if inconsistentRoot.exists then levelError(inconsistentRoot, tp, pos)
38
- else tp
+ else mapOver(tp)
39
case tp: AnnotatedType =>
40
derivedAnnotatedType(tp, apply(tp.parent), tp.annot)
41
case _ =>
tests/pos-macros/i19767.scala
@@ -0,0 +1,7 @@
1
+import scala.quoted.*
2
+
3
+class ICons[K <: Singleton](val key: K)
4
5
+def filterX(using Quotes): Unit =
6
+ (??? : Expr[Any]) match
7
+ case '{ $y : ICons[k1] } => '{ ICons($y.key) }
0 commit comments