Skip to content

Commit 9a397c6

Browse files
committed
spec: Remove obsolete rules related to scala.NotNull
These rules were removed in scala#2244 and scala.NotNull itself was deprecated.
1 parent eeba018 commit 9a397c6

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

spec/03-types.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -835,8 +835,7 @@ transitive relation that satisfies the following conditions.
835835
- For every type constructor $T$ (with any number of type parameters),
836836
`scala.Nothing <: $T$ <: scala.Any`.
837837

838-
- For every class type $T$ such that `$T$ <: scala.AnyRef` and not
839-
`$T$ <: scala.NotNull` one has `scala.Null <: $T$`.
838+
- For every class type $T$ such that `$T$ <: scala.AnyRef` one has `scala.Null <: $T$`.
840839
- A type variable or abstract type $t$ conforms to its upper bound and
841840
its lower bound conforms to $t$.
842841
- A class type or parameterized type conforms to any of its base-types.

spec/06-expressions.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -148,10 +148,6 @@ The selection $e.x$ is evaluated by first evaluating the qualifier
148148
expression $e$, which yields an object $r$, say. The selection's
149149
result is then the member of $r$ that is either defined by $m$ or defined
150150
by a definition overriding $m$.
151-
If that member has a type which
152-
conforms to `scala.NotNull`, the member's value must be initialized
153-
to a value different from `null`, otherwise a `scala.UnitializedError`
154-
is thrown.
155151

156152
## This and Super
157153

0 commit comments

Comments
 (0)