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.
2 parents fa1cbb0 + 50a9dd1 commit ab2ed31Copy full SHA for ab2ed31
compiler/src/dotty/tools/dotc/core/Decorators.scala
@@ -274,6 +274,9 @@ object Decorators {
274
s"[cannot display due to $msg, raw string = $x]"
275
case _ => String.valueOf(x).nn
276
277
+ /** Returns the simple class name of `x`. */
278
+ def className: String = getClass.getSimpleName.nn
279
+
280
extension [T](x: T)
281
def assertingErrorsReported(using Context): T = {
282
assert(ctx.reporter.errorsReported)
0 commit comments