Skip to content

Commit

Permalink
Fix the className extension decorator
Browse files Browse the repository at this point in the history
  • Loading branch information
dwijnand authored and little-inferno committed Jan 25, 2023
1 parent cbb8d78 commit 758f3eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/src/dotty/tools/dotc/core/Decorators.scala
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ object Decorators {
case _ => String.valueOf(x).nn

/** Returns the simple class name of `x`. */
def className: String = getClass.getSimpleName.nn
def className: String = x.getClass.getSimpleName.nn

extension [T](x: T)
def assertingErrorsReported(using Context): T = {
Expand Down

0 comments on commit 758f3eb

Please sign in to comment.