Skip to content

Commit 08a78f2

Browse files
committed
WIP
1 parent 65e5ecd commit 08a78f2

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

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

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -120,12 +120,6 @@ class Staging extends MacroTransformWithImplicits {
120120
new Reifier(isQuote, this, if (isQuote) level + 1 else level - 1, levels, ctx)
121121
}
122122

123-
/** A map from type ref T to expressions of type `quoted.Type[T]`".
124-
* These will be turned into splices using `addTags` and represent type variables
125-
* that can be possibly healed.
126-
*/
127-
val importedTags = new mutable.LinkedHashMap[TypeRef, Tree]()
128-
129123
/** A stack of entered symbols, to be unwound after scope exit */
130124
var enteredSyms: List[Symbol] = Nil
131125

@@ -192,8 +186,7 @@ class Staging extends MacroTransformWithImplicits {
192186
| The access would be accepted with the right type tag, but
193187
| ${ctx.typer.missingArgMsg(tag, reqType, "")}""")
194188
case _ =>
195-
importedTags(tp) = nested(isQuote = false).transform(tag) // TODO remove me
196-
Some(nested(isQuote = false).transform(tag).select(tpnme.UNARY_~)) // TODO remove the transform?
189+
Some(tag.select(tpnme.UNARY_~))
197190
}
198191
}
199192
case _ =>

0 commit comments

Comments
 (0)