Stack traces: Difference between revisions

→‎{{header|Kotlin}}: Updated example see https://github.com/dkandalov/rosettacode-kotlin for details
m (bugfix)
(→‎{{header|Kotlin}}: Updated example see https://github.com/dkandalov/rosettacode-kotlin for details)
Line 1,009:
 
=={{header|Kotlin}}==
<lang scala>// version 1.1.12 (stacktrace.kt which compiles to StacktraceKt.class)
 
fun myFunc() {
println(Throwable().stackTrace.joinToString("\n"))
}
 
Line 1,018:
myFunc()
println("\nContinuing ... ")
}</lang>
}
</lang>
 
{{out}}