Skip to content

Commit 1a959c3

Browse files
authored
Merge pull request #2801 from olafurpg/2797
Add debug string to assertion error message.
2 parents 124778f + c924ea3 commit 1a959c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/backend/jvm/DottyBackendInterface.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ class DottyBackendInterface(outputDirectory: AbstractFile, val superCallsMap: Ma
256256
val evalue = t.symbol.name.mangledString // value the actual enumeration value.
257257
av.visitEnum(name, edesc, evalue)
258258
} else {
259-
assert(toDenot(t.symbol).name.is(DefaultGetterName)) // this should be default getter. do not emmit.
259+
assert(toDenot(t.symbol).name.is(DefaultGetterName), toDenot(t.symbol).name.debugString) // this should be default getter. do not emmit.
260260
}
261261
case t: SeqLiteral =>
262262
val arrAnnotV: AnnotationVisitor = av.visitArray(name)

0 commit comments

Comments
 (0)