aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillaume Martres <smarter@ubuntu.com>2014-12-13 15:47:22 +0100
committerGuillaume Martres <smarter@ubuntu.com>2014-12-13 15:47:44 +0100
commit35ba97ca7ac92761cad1a0be43fbe52d9bcb3c92 (patch)
treee307a52e7e0f6267073a998d8bf9ff30e6460d43
parenta4c11eb0004736fd10fa500d7ef0edc7044e5444 (diff)
downloaddotty-35ba97ca7ac92761cad1a0be43fbe52d9bcb3c92.tar.gz
dotty-35ba97ca7ac92761cad1a0be43fbe52d9bcb3c92.tar.bz2
dotty-35ba97ca7ac92761cad1a0be43fbe52d9bcb3c92.zip
Remove obsolete mentions of the NotNull class
-rw-r--r--src/dotty/tools/dotc/TypeErasure.scala2
-rw-r--r--src/dotty/tools/dotc/core/SymDenotations.scala2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/dotty/tools/dotc/TypeErasure.scala b/src/dotty/tools/dotc/TypeErasure.scala
index 2407b9e2a..39eb7a254 100644
--- a/src/dotty/tools/dotc/TypeErasure.scala
+++ b/src/dotty/tools/dotc/TypeErasure.scala
@@ -253,7 +253,7 @@ class TypeErasure(isJava: Boolean, isSemi: Boolean, isConstructor: Boolean, wild
* - otherwise, if T is a type paramter coming from Java, []Object
* - otherwise, Object
* - For a term ref p.x, the type <noprefix> # x.
- * - For a typeref scala.Any, scala.AnyVal, scala.Singleon or scala.NotNull: |java.lang.Object|
+ * - For a typeref scala.Any, scala.AnyVal or scala.Singleton: |java.lang.Object|
* - For a typeref scala.Unit, |scala.runtime.BoxedUnit|.
* - For a typeref P.C where C refers to a class, <noprefix> # C.
* - For a typeref P.C where C refers to an alias type, the erasure of C's alias.
diff --git a/src/dotty/tools/dotc/core/SymDenotations.scala b/src/dotty/tools/dotc/core/SymDenotations.scala
index 592a4ff45..841d94b74 100644
--- a/src/dotty/tools/dotc/core/SymDenotations.scala
+++ b/src/dotty/tools/dotc/core/SymDenotations.scala
@@ -466,7 +466,7 @@ object SymDenotations {
/** Is this symbol a class references to which that are supertypes of null? */
final def isNullableClass(implicit ctx: Context): Boolean =
- isNonValueClass && !(this is ModuleClass) // todo: check that class does not derive from NotNull?
+ isNonValueClass && !(this is ModuleClass)
/** Is this definition accessible as a member of tree with type `pre`?
* @param pre The type of the tree from which the selection is made