Drop Throwable#printStackTrace, make it a JVM-specific extension

This commit is contained in:
Alexander Udalov
2015-12-24 03:53:27 +03:00
parent 3d44471659
commit 75f046fa81
14 changed files with 14 additions and 27 deletions
+1
View File
@@ -3,6 +3,7 @@ compiler/testData/cli/jvm/wrongAbiVersion.kt:4:5: error: unresolved reference: b
bar()
^
compiler/testData/cli/jvm/wrongAbiVersion.kt:6:7: error: unresolved reference. None of the following candidates is applicable because of receiver type mismatch:
public fun kotlin.Throwable.printStackTrace(): kotlin.Unit defined in kotlin
public fun kotlin.Throwable.printStackTrace(stream: java.io.PrintStream): kotlin.Unit defined in kotlin
public fun kotlin.Throwable.printStackTrace(writer: java.io.PrintWriter): kotlin.Unit defined in kotlin
(note: this may be caused by the fact that some classes compiled with an incompatible version of Kotlin were found in the classpath. Such classes cannot be loaded properly by this version of Kotlin compiler. See below for more information)