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 d78516a commit fb83893Copy full SHA for fb83893
compiler/src/dotty/tools/dotc/core/Decorators.scala
@@ -292,7 +292,7 @@ object Decorators {
292
case _ => String.valueOf(x).nn
293
294
/** Returns the simple class name of `x`. */
295
- def className: String = x.getClass.getSimpleName.nn
+ def className: String = if x == null then "<null>" else x.getClass.getSimpleName.nn
296
297
extension [T](x: T)
298
def assertingErrorsReported(using Context): T = {
0 commit comments