diff options
author | Josh Suereth <Joshua.Suereth@gmail.com> | 2012-08-11 05:04:12 -0700 |
---|---|---|
committer | Josh Suereth <Joshua.Suereth@gmail.com> | 2012-08-11 05:04:12 -0700 |
commit | 915b26f8966f10f8e20cb555c6287cf249562d41 (patch) | |
tree | da07a138999e515ecc6a5b5f253ec50df4433eed /src | |
parent | 837a68bef7501d8a641163635adbdccdbfe4c5b8 (diff) | |
parent | 8d87387e6a4aa41783f83e3533046b9b57d5bcd1 (diff) | |
download | scala-915b26f8966f10f8e20cb555c6287cf249562d41.tar.gz scala-915b26f8966f10f8e20cb555c6287cf249562d41.tar.bz2 scala-915b26f8966f10f8e20cb555c6287cf249562d41.zip |
Merge pull request #1118 from scalamacros/ticket/6201
SI-6201 minor fixes in key points
Diffstat (limited to 'src')
-rw-r--r-- | src/reflect/scala/reflect/internal/Mirrors.scala | 3 | ||||
-rw-r--r-- | src/reflect/scala/reflect/internal/Trees.scala | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/src/reflect/scala/reflect/internal/Mirrors.scala b/src/reflect/scala/reflect/internal/Mirrors.scala index 2e2e63a4b4..bde7f7ac51 100644 --- a/src/reflect/scala/reflect/internal/Mirrors.scala +++ b/src/reflect/scala/reflect/internal/Mirrors.scala @@ -247,7 +247,7 @@ trait Mirrors extends api.Mirrors { // is very beneficial for a handful of bootstrap symbols to have // first class identities sealed trait WellKnownSymbol extends Symbol { - this initFlags TopLevelCreationFlags + this initFlags (TopLevelCreationFlags | STATIC) } // Features common to RootClass and RootPackage, the roots of all // type and term symbols respectively. @@ -276,7 +276,6 @@ trait Mirrors extends api.Mirrors { override def isRoot = true override def isEffectiveRoot = true - override def isStatic = true override def isNestedClass = false } // The empty package, which holds all top level types without given packages. diff --git a/src/reflect/scala/reflect/internal/Trees.scala b/src/reflect/scala/reflect/internal/Trees.scala index 220869e4d2..94d51b7455 100644 --- a/src/reflect/scala/reflect/internal/Trees.scala +++ b/src/reflect/scala/reflect/internal/Trees.scala @@ -160,7 +160,7 @@ trait Trees extends api.Trees { self: SymbolTable => new ThisSubstituter(clazz, to) transform this def hasSymbolWhich(f: Symbol => Boolean) = - hasSymbol && symbol != null && f(symbol) + (symbol ne null) && (symbol ne NoSymbol) && f(symbol) def isErroneous = (tpe ne null) && tpe.isErroneous def isTyped = (tpe ne null) && !tpe.isErroneous |