Fix testData
This commit is contained in:
@@ -2,6 +2,8 @@ public fun <T> Iterable<T>.myforEach(operation: (T) -> Unit) : Unit {
|
||||
for (element in this) operation(element)
|
||||
}
|
||||
|
||||
public fun println(v: Any?) {}
|
||||
|
||||
fun foo1() {
|
||||
(1..5).myforEach {
|
||||
println(it)
|
||||
|
||||
+1
-1
@@ -3,5 +3,5 @@ import wrong.*
|
||||
fun foo(x: ClassWithWrongAbiVersion) {
|
||||
bar()
|
||||
|
||||
1.printStackTrace(2, 3)
|
||||
1.replaceIndent(2, 3)
|
||||
}
|
||||
|
||||
+2
-4
@@ -3,11 +3,9 @@ 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
|
||||
public fun kotlin.String.replaceIndent(newIndent: kotlin.String = ...): kotlin.String defined in kotlin.text
|
||||
(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)
|
||||
1.printStackTrace(2, 3)
|
||||
1.replaceIndent(2, 3)
|
||||
^
|
||||
compiler/testData/cli/jvm/wrongAbiVersionLib/bin/ClassWithWrongAbiVersion.class: error: class 'ClassWithWrongAbiVersion' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 0.30.0, expected version is $ABI_VERSION$
|
||||
COMPILATION_ERROR
|
||||
@@ -2,6 +2,4 @@ fun foo() {
|
||||
assert(1 == 1) { "Hahaha" }
|
||||
}
|
||||
|
||||
// 0 INVOKESTATIC kotlin\/KotlinPackage\.getASSERTIONS_ENABLED
|
||||
// 1 INVOKESTATIC kotlin\/PreconditionsKt\.getASSERTIONS_ENABLED
|
||||
// 0 INVOKESTATIC kotlin\/PreconditionsKt__.+\.getASSERTIONS_ENABLED
|
||||
// 1 GETSTATIC kotlin\/_Assertions\.ENABLED
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
fun print(v: Any?) {}
|
||||
|
||||
fun foo() {
|
||||
val array = intArrayOf(1,2,3)
|
||||
|
||||
@@ -1,10 +1,8 @@
|
||||
|
||||
ERR:
|
||||
java.lang.IllegalStateException: my error
|
||||
at kotlin.PreconditionsKt__PreconditionsKt.error(Preconditions.kt:88)
|
||||
at kotlin.PreconditionsKt.error(Unknown Source)
|
||||
at Script.main(Unknown Source)
|
||||
at Script.a(Unknown Source)
|
||||
at Script.<init>(Unknown Source)
|
||||
at Script.main(script.kts:12)
|
||||
at Script.a(script.kts:6)
|
||||
at Script.<init>(script.kts:9)
|
||||
|
||||
Return code: 3
|
||||
|
||||
Reference in New Issue
Block a user