We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 39719aa commit 9a624b9Copy full SHA for 9a624b9
src/dotty/tools/dotc/core/SymDenotations.scala
@@ -616,7 +616,7 @@ object SymDenotations {
616
617
/** Is this symbol a class references to which that are supertypes of null? */
618
final def isNullableClass(implicit ctx: Context): Boolean =
619
- isClass && !isValueClass && !(this is ModuleClass)
+ isClass && !isValueClass && !(this is ModuleClass) && symbol != defn.NothingClass
620
621
/** Is this definition accessible as a member of tree with type `pre`?
622
* @param pre The type of the tree from which the selection is made
0 commit comments