File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
compiler/src/dotty/tools/dotc/core/quoted Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,9 @@ object PickledQuotes {
38
38
/** Force unpickling of the tree, removes the spliced type `@quotedTypeTag type` definitions and dealiases references to `@quotedTypeTag type` */
39
39
val forceAndCleanArtefacts = new TreeMap {
40
40
override def transform (tree : tpd.Tree )(implicit ctx : Context ): tpd.Tree = tree match {
41
- case tree : TypeDef if tree.symbol.hasAnnotation(defn.InternalQuoted_QuoteTypeTagAnnot ) => Thicket ()
41
+ case Block (stat :: rest, expr1) if stat.symbol.hasAnnotation(defn.InternalQuoted_QuoteTypeTagAnnot ) =>
42
+ assert(rest.forall { case tdef : TypeDef => tdef.symbol.hasAnnotation(defn.InternalQuoted_QuoteTypeTagAnnot ) })
43
+ transform(expr1)
42
44
case tree => super .transform(tree).withType(dealiasTypeTags(tree.tpe))
43
45
}
44
46
}
You can’t perform that action at this time.
0 commit comments