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.
scala.quoted.Type
1 parent 5b6b8d5 commit 2b36c21Copy full SHA for 2b36c21
compiler/src/dotty/tools/dotc/transform/Staging.scala
@@ -66,7 +66,7 @@ class Staging extends MacroTransform {
66
case tpe @ TypeRef(prefix, _) if tpe.typeSymbol eq defn.QuotedType_splice =>
67
// Type splices must have a know term ref, usually to an implicit argument
68
// This is mostly intended to catch `quoted.Type[T]#splice` types which should just be `T`
69
- assert(prefix.isInstanceOf[TermRef], prefix)
+ assert(prefix.isInstanceOf[TermRef] || prefix.isInstanceOf[ThisType], prefix)
70
case _ =>
71
// OK
72
}
0 commit comments