diff options
author | Eugene Burmako <xeno.by@gmail.com> | 2012-07-30 21:14:42 +0200 |
---|---|---|
committer | Eugene Burmako <xeno.by@gmail.com> | 2012-08-02 15:50:01 +0200 |
commit | 013acf6eb0117ca12ab2a0d0e8560df40a7392a3 (patch) | |
tree | 2f69939025e5796381327bd16f602b5be9cfcba4 /test/files/run/macro-typecheck-macrosdisabled2.check | |
parent | 367b82de04bdee24b0994e30c1464297eae16d74 (diff) | |
download | scala-013acf6eb0117ca12ab2a0d0e8560df40a7392a3.tar.gz scala-013acf6eb0117ca12ab2a0d0e8560df40a7392a3.tar.bz2 scala-013acf6eb0117ca12ab2a0d0e8560df40a7392a3.zip |
renames asType to toType and asXXXSymbol to asXXX
This renaming arguably makes the intent of `asType` more clear,
but more importantly it shaves 6 symbols off pervasive casts that
are required to anything meaningful with reflection API
(as in mirror.reflectMethod(tpe.member(newTermName("x")).asMethodSymbol)).
Diffstat (limited to 'test/files/run/macro-typecheck-macrosdisabled2.check')
-rw-r--r-- | test/files/run/macro-typecheck-macrosdisabled2.check | 2 |
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 2160d3800a..908fb65bb3 100644 --- a/test/files/run/macro-typecheck-macrosdisabled2.check +++ b/test/files/run/macro-typecheck-macrosdisabled2.check @@ -28,7 +28,7 @@ def apply[U >: Nothing <: scala.reflect.base.Universe with Singleton]($m$untyped: scala.reflect.base.MirrorOf[U]): U#Type = {
val $u: U = $m$untyped.universe;
val $m: $u.Mirror = $m$untyped.asInstanceOf[$u.Mirror];
- $u.TypeRef.apply($u.ThisType.apply($m.staticPackage("scala").asModuleSymbol.moduleClass), $m.staticClass("scala.Array"), scala.collection.immutable.List.apply[$u.Type]($m.staticClass("scala.Int").asTypeSymbol.asTypeConstructor))
+ $u.TypeRef.apply($u.ThisType.apply($m.staticPackage("scala").asModule.moduleClass), $m.staticClass("scala.Array"), scala.collection.immutable.List.apply[$u.Type]($m.staticClass("scala.Int").asType.toTypeConstructor))
}
};
new $typecreator2()
|