summaryrefslogtreecommitdiff
path: root/test/files/run/macro-typecheck-macrosdisabled2.check
diff options
context:
space:
mode:
authorEugene Burmako <xeno.by@gmail.com>2013-02-08 14:08:54 +0100
committerEugene Burmako <xeno.by@gmail.com>2013-02-08 15:04:48 +0100
commitce867c74572b51cfcb6ac3e3bfa9dce36cc0b638 (patch)
treea4c05858cd9ebd60670aa3dbcb3d4033e6f42e10 /test/files/run/macro-typecheck-macrosdisabled2.check
parent09ef8730d13eff1cf200bbfb0f6fda7f6d72524a (diff)
downloadscala-ce867c74572b51cfcb6ac3e3bfa9dce36cc0b638.tar.gz
scala-ce867c74572b51cfcb6ac3e3bfa9dce36cc0b638.tar.bz2
scala-ce867c74572b51cfcb6ac3e3bfa9dce36cc0b638.zip
term and type reftrees are now reified uniformly
Top-level (i.e. owned by a package) => Ident(symbol) Nested (i.e. owned by an object or a package object) => Select(owner, symbol) Inner (i.e. owned by a static class) => selectTerm/selectType(owner, name) Non-locatable (i.e. everything else) => see GenTrees.scala for more details Changes w.r.t the previous approaches: * Top-level refs are no longer reified as Select(This(package), symbol). Proposed reification scheme is as resistant to resetAttrs as previous one, but is at the same time much shorter. * Refs to definitions from package objects are no longer Ident(symbol). Otherwise reflective compilation of things like `_ :: _` fails. * Contents of Predef._ and scala._ are no longer treated specially. This increases the size of reificode, but is more hygienic.
Diffstat (limited to 'test/files/run/macro-typecheck-macrosdisabled2.check')
-rw-r--r--test/files/run/macro-typecheck-macrosdisabled2.check2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/files/run/macro-typecheck-macrosdisabled2.check b/test/files/run/macro-typecheck-macrosdisabled2.check
index 7bdd1d6a3a..27d15d47af 100644
--- a/test/files/run/macro-typecheck-macrosdisabled2.check
+++ b/test/files/run/macro-typecheck-macrosdisabled2.check
@@ -10,7 +10,7 @@
def apply[U >: Nothing <: scala.reflect.api.Universe with Singleton]($m$untyped: scala.reflect.api.Mirror[U]): U#Tree = {
val $u: U = $m$untyped.universe;
val $m: $u.Mirror = $m$untyped.asInstanceOf[$u.Mirror];
- $u.Apply.apply($u.Select.apply($u.Select.apply($u.build.Ident($m.staticPackage("scala")), $u.newTermName("Array")), $u.newTermName("apply")), scala.collection.immutable.List.apply[$u.Literal]($u.Literal.apply($u.Constant.apply(2))))
+ $u.Apply.apply($u.Select.apply($u.build.Ident($m.staticModule("scala.Array")), $u.newTermName("apply")), scala.collection.immutable.List.apply[$u.Literal]($u.Literal.apply($u.Constant.apply(2))))
}
};
new $treecreator1()