aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/core/Symbols.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2014-07-16 16:04:14 +0200
committerMartin Odersky <odersky@gmail.com>2014-07-17 11:02:03 +0200
commit37c6e42cfd04c62c504a9143cb2cc4b500baf38b (patch)
treefffdafaaa27501c49ce40512b7f3b79ba485f4f1 /src/dotty/tools/dotc/core/Symbols.scala
parentace968dabf8e02f725f7b77cde90f64988a7b326 (diff)
downloaddotty-37c6e42cfd04c62c504a9143cb2cc4b500baf38b.tar.gz
dotty-37c6e42cfd04c62c504a9143cb2cc4b500baf38b.tar.bz2
dotty-37c6e42cfd04c62c504a9143cb2cc4b500baf38b.zip
Fixed problem with missing denotations in polyDefDef
Problem was reported by @darkdimius. Test case will come in next commit.
Diffstat (limited to 'src/dotty/tools/dotc/core/Symbols.scala')
-rw-r--r--src/dotty/tools/dotc/core/Symbols.scala4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/dotty/tools/dotc/core/Symbols.scala b/src/dotty/tools/dotc/core/Symbols.scala
index ab083a128..1767d7c0c 100644
--- a/src/dotty/tools/dotc/core/Symbols.scala
+++ b/src/dotty/tools/dotc/core/Symbols.scala
@@ -357,6 +357,10 @@ object Symbols {
final def asType(implicit ctx: Context): TypeSymbol = { assert(isType, s"isType called on not-a-Type $this"); asInstanceOf[TypeSymbol] }
final def asClass: ClassSymbol = asInstanceOf[ClassSymbol]
+ /** Special cased here, because it may be used on naked symbols in substituters */
+ final def isStatic(implicit ctx: Context): Boolean =
+ lastDenot != null && denot.isStatic
+
/** A unique, densely packed integer tag for each class symbol, -1
* for all other symbols. To save memory, this method
* should be called only if class is a super class of some other class.