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