Skip to content

Commit 2b36c21

Browse files
committed
Relax postcondition to allow the compilation of scala.quoted.Type
1 parent 5b6b8d5 commit 2b36c21

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/transform/Staging.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ class Staging extends MacroTransform {
6666
case tpe @ TypeRef(prefix, _) if tpe.typeSymbol eq defn.QuotedType_splice =>
6767
// Type splices must have a know term ref, usually to an implicit argument
6868
// This is mostly intended to catch `quoted.Type[T]#splice` types which should just be `T`
69-
assert(prefix.isInstanceOf[TermRef], prefix)
69+
assert(prefix.isInstanceOf[TermRef] || prefix.isInstanceOf[ThisType], prefix)
7070
case _ =>
7171
// OK
7272
}

0 commit comments

Comments
 (0)