Skip to content

Commit ae9dbfe

Browse files
committed
Fix the className extension decorator
1 parent 2e409c6 commit ae9dbfe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/core/Decorators.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ object Decorators {
287287
case _ => String.valueOf(x).nn
288288

289289
/** Returns the simple class name of `x`. */
290-
def className: String = getClass.getSimpleName.nn
290+
def className: String = x.getClass.getSimpleName.nn
291291

292292
extension [T](x: T)
293293
def assertingErrorsReported(using Context): T = {

0 commit comments

Comments
 (0)