summaryrefslogtreecommitdiff
path: root/src/compiler/scala/reflect/internal/Symbols.scala
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2011-11-24 02:01:00 +0000
committerPaul Phillips <paulp@improving.org>2011-11-24 02:01:00 +0000
commit2b069593c84194e21f88b8552ad12917decc14d5 (patch)
tree9d37331201d02b6cd9c5b11c742957c738bb4e16 /src/compiler/scala/reflect/internal/Symbols.scala
parent93717598b711a69822d802e06873ed7b00f89898 (diff)
downloadscala-2b069593c84194e21f88b8552ad12917decc14d5.tar.gz
scala-2b069593c84194e21f88b8552ad12917decc14d5.tar.bz2
scala-2b069593c84194e21f88b8552ad12917decc14d5.zip
Minor restructuring in Implicits.
Another case where I tried to get into the performance party but ended up playing dungeons and dragons next door. However I did come away with an attractive tablecloth, which I draped over Implicits.scala before waving my magic wand. TRANSLATION: it's probably not faster but it's still better.
Diffstat (limited to 'src/compiler/scala/reflect/internal/Symbols.scala')
-rw-r--r--src/compiler/scala/reflect/internal/Symbols.scala3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/compiler/scala/reflect/internal/Symbols.scala b/src/compiler/scala/reflect/internal/Symbols.scala
index 1b1d26d038..65b60bfa39 100644
--- a/src/compiler/scala/reflect/internal/Symbols.scala
+++ b/src/compiler/scala/reflect/internal/Symbols.scala
@@ -1250,6 +1250,9 @@ trait Symbols extends api.Symbols { self: SymbolTable =>
final def isNumericSubClass(that: Symbol): Boolean =
definitions.isNumericSubClass(this, that)
+ final def isWeakSubClass(that: Symbol) =
+ isSubClass(that) || isNumericSubClass(that)
+
// ------ overloaded alternatives ------------------------------------------------------
def alternatives: List[Symbol] =