summaryrefslogtreecommitdiff
path: root/test/files/run/macro-range
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/run/macro-range')
-rw-r--r--test/files/run/macro-range/Common_1.scala3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/files/run/macro-range/Common_1.scala b/test/files/run/macro-range/Common_1.scala
index 0e66815f15..35d2efd76d 100644
--- a/test/files/run/macro-range/Common_1.scala
+++ b/test/files/run/macro-range/Common_1.scala
@@ -12,6 +12,7 @@ abstract class RangeDefault {
abstract class Utils {
val context: Context
import context.universe._
+ import internal._
class TreeSubstituter(from: List[Symbol], to: List[Tree]) extends Transformer {
override def transform(tree: Tree): Tree = tree match {
@@ -23,7 +24,7 @@ abstract class Utils {
subst(from, to)
case _ =>
val tree1 = super.transform(tree)
- if (tree1 ne tree) tree1.tpe = null
+ if (tree1 ne tree) setType(tree1, null)
tree1
}
}