Skip to content

Commit c924ea3

Browse files
committed
Add debug string to assertion error message
This commit changes the assertion error messaage in #2797 from an empty message to: ``` found: Array[java.nio.file.FileVisitOption] [error] required: java.nio.file.FileVisitOption ```
1 parent 9513ed2 commit c924ea3

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)