File tree 2 files changed +2
-8
lines changed
compiler/src/dotty/tools/dotc/transform 2 files changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -335,9 +335,6 @@ class ReifyQuotes extends MacroTransformWithImplicits {
335
335
tree match {
336
336
case Quoted (quotedTree) =>
337
337
quotation(quotedTree, tree)
338
- case tree : TypeTree if tree.tpe.typeSymbol.isSplice =>
339
- val splicedType = tree.tpe.stripTypeVar.asInstanceOf [TypeRef ].prefix.termSymbol
340
- splice(ref(splicedType).select(tpnme.UNARY_~ ).withPos(tree.pos))
341
338
case tree : Select if tree.symbol.isSplice =>
342
339
splice(tree)
343
340
case tree : RefTree if tree.symbol.is(Inline ) && tree.symbol.is(Param ) =>
Original file line number Diff line number Diff line change @@ -18,9 +18,9 @@ import dotty.tools.dotc.core.quoted._
18
18
import dotty .tools .dotc .util .SourcePosition
19
19
20
20
21
- /** Checks that the phase consistency principle (PCP) holds.
21
+ /** Checks that the phase consistency principle (PCP) holds, heals types and expand macros .
22
22
*
23
- * TODO
23
+ * Type healing consists in transforming a phase inconsistent type `T` into `implicitly[Type[T]].unary_~`.
24
24
*
25
25
* For macro definitions we assume that we have a single ~ directly as the RHS.
26
26
* The Splicer is used to check that the RHS will be interpretable (with the `Splicer`) once inlined.
@@ -369,9 +369,6 @@ class Staging extends MacroTransformWithImplicits {
369
369
tree match {
370
370
case Quoted (quotedTree) =>
371
371
quotation(quotedTree, tree)
372
- case tree : TypeTree if tree.tpe.typeSymbol.isSplice =>
373
- val splicedType = tree.tpe.stripTypeVar.asInstanceOf [TypeRef ].prefix.termSymbol
374
- splice(ref(splicedType).select(tpnme.UNARY_~ ).withPos(tree.pos))
375
372
case tree : Select if tree.symbol.isSplice =>
376
373
splice(tree)
377
374
case tree : RefTree if tree.symbol.is(Inline ) && tree.symbol.is(Param ) =>
You can’t perform that action at this time.
0 commit comments