fixed bug with scopes usage

This commit is contained in:
sergeych committed 2025-12-22 05:04:47 +01:00
1 parent 92cb088f36
commit b7838b45ec
8 files changed
+98 -34

No files matched your search

+4 -1
View File
@@ -210,8 +210,11 @@ class StackTraceEntry(
/* Print this exception and its stack trace to standard output. */
fun Exception.printStackTrace() {
println(this)
var lastEntry = null
for( entry in stackTrace() ) {
println("\tat "+entry)
if( lastEntry == null || lastEntry !is StackTraceEntry || lastEntry.line != entry.line )
println("\tat "+entry.toString())
lastEntry = entry
}
}