Skip to content

Commit f1dcbbe

Browse files
authored
Fix the className extension decorator (#16527)
2 parents 6383025 + ae9dbfe commit f1dcbbe

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)