Tests: unmute light analysis tests passing with JVM_IR
This commit is contained in:
+1
-1
@@ -1,11 +1,11 @@
|
|||||||
// IGNORE_BACKEND: JVM
|
// IGNORE_BACKEND: JVM
|
||||||
// IGNORE_LIGHT_ANALYSIS
|
|
||||||
// TARGET_BACKEND: JVM
|
// TARGET_BACKEND: JVM
|
||||||
// EMIT_JVM_TYPE_ANNOTATIONS
|
// EMIT_JVM_TYPE_ANNOTATIONS
|
||||||
// !LANGUAGE: +ClassTypeParameterAnnotations
|
// !LANGUAGE: +ClassTypeParameterAnnotations
|
||||||
// JVM_TARGET: 1.8
|
// JVM_TARGET: 1.8
|
||||||
// WITH_REFLECT
|
// WITH_REFLECT
|
||||||
// FULL_JDK
|
// FULL_JDK
|
||||||
|
|
||||||
package foo
|
package foo
|
||||||
|
|
||||||
import java.lang.reflect.AnnotatedType
|
import java.lang.reflect.AnnotatedType
|
||||||
|
|||||||
+1
-1
@@ -1,10 +1,10 @@
|
|||||||
// IGNORE_BACKEND: JVM
|
// IGNORE_BACKEND: JVM
|
||||||
// IGNORE_LIGHT_ANALYSIS
|
|
||||||
// TARGET_BACKEND: JVM
|
// TARGET_BACKEND: JVM
|
||||||
// EMIT_JVM_TYPE_ANNOTATIONS
|
// EMIT_JVM_TYPE_ANNOTATIONS
|
||||||
// JVM_TARGET: 1.8
|
// JVM_TARGET: 1.8
|
||||||
// WITH_REFLECT
|
// WITH_REFLECT
|
||||||
// FULL_JDK
|
// FULL_JDK
|
||||||
|
|
||||||
package foo
|
package foo
|
||||||
|
|
||||||
import java.lang.reflect.AnnotatedType
|
import java.lang.reflect.AnnotatedType
|
||||||
|
|||||||
-1
@@ -1,5 +1,4 @@
|
|||||||
// TARGET_BACKEND: JVM
|
// TARGET_BACKEND: JVM
|
||||||
// IGNORE_LIGHT_ANALYSIS
|
|
||||||
// WITH_STDLIB
|
// WITH_STDLIB
|
||||||
// LAMBDAS: CLASS
|
// LAMBDAS: CLASS
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
// WITH_STDLIB
|
// WITH_STDLIB
|
||||||
// IGNORE_BACKEND: JVM
|
// IGNORE_BACKEND: JVM
|
||||||
// IGNORE_LIGHT_ANALYSIS
|
|
||||||
|
|
||||||
// JVM_TARGET: 1.8
|
// JVM_TARGET: 1.8
|
||||||
// ^ This test causes SIGSEGV on JDK 1.6 with old back-end.
|
// ^ This test causes SIGSEGV on JDK 1.6 with old back-end.
|
||||||
@@ -16,4 +15,4 @@ fun box(): String {
|
|||||||
if (test2 != 3) throw Exception("with(ints, IntArray::size) != 3: $test2")
|
if (test2 != 3) throw Exception("with(ints, IntArray::size) != 3: $test2")
|
||||||
|
|
||||||
return "OK"
|
return "OK"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
// IGNORE_BACKEND: JVM
|
// IGNORE_BACKEND: JVM
|
||||||
// IGNORE_LIGHT_ANALYSIS
|
|
||||||
|
|
||||||
// JVM_IR it this case has an approximated type 'KFun<out Any>', which has a projected top-level argument.
|
// JVM_IR it this case has an approximated type 'KFun<out Any>', which has a projected top-level argument.
|
||||||
|
|
||||||
|
|||||||
-1
@@ -1,5 +1,4 @@
|
|||||||
// TARGET_BACKEND: JVM
|
// TARGET_BACKEND: JVM
|
||||||
// IGNORE_LIGHT_ANALYSIS
|
|
||||||
// WITH_STDLIB
|
// WITH_STDLIB
|
||||||
// WITH_COROUTINES
|
// WITH_COROUTINES
|
||||||
|
|
||||||
|
|||||||
+1
-2
@@ -1,7 +1,6 @@
|
|||||||
// WITH_STDLIB
|
// WITH_STDLIB
|
||||||
// WITH_COROUTINES
|
// WITH_COROUTINES
|
||||||
// IGNORE_BACKEND: JVM
|
// IGNORE_BACKEND: JVM
|
||||||
// IGNORE_LIGHT_ANALYSIS
|
|
||||||
// LANGUAGE: +SuspendFunctionsInFunInterfaces, +JvmIrEnabledByDefault
|
// LANGUAGE: +SuspendFunctionsInFunInterfaces, +JvmIrEnabledByDefault
|
||||||
// SKIP_DCE_DRIVEN
|
// SKIP_DCE_DRIVEN
|
||||||
|
|
||||||
@@ -25,4 +24,4 @@ fun box(): String {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
return res
|
return res
|
||||||
}
|
}
|
||||||
|
|||||||
-1
@@ -1,6 +1,5 @@
|
|||||||
// WITH_STDLIB
|
// WITH_STDLIB
|
||||||
// IGNORE_BACKEND: JVM
|
// IGNORE_BACKEND: JVM
|
||||||
// IGNORE_LIGHT_ANALYSIS
|
|
||||||
// FILE: 1.kt
|
// FILE: 1.kt
|
||||||
|
|
||||||
@file:OptIn(ExperimentalTypeInference::class)
|
@file:OptIn(ExperimentalTypeInference::class)
|
||||||
|
|||||||
compiler/testData/codegen/box/coroutines/featureIntersection/jvmDefault/kt46007/all-compatibility.kt
Vendored
+1
-2
@@ -1,7 +1,6 @@
|
|||||||
// WITH_STDLIB
|
// WITH_STDLIB
|
||||||
// !JVM_DEFAULT_MODE: all-compatibility
|
// !JVM_DEFAULT_MODE: all-compatibility
|
||||||
// TARGET_BACKEND: JVM
|
// TARGET_BACKEND: JVM
|
||||||
// IGNORE_LIGHT_ANALYSIS
|
|
||||||
// IGNORE_BACKEND: JVM
|
// IGNORE_BACKEND: JVM
|
||||||
// JVM_TARGET: 1.8
|
// JVM_TARGET: 1.8
|
||||||
|
|
||||||
@@ -27,4 +26,4 @@ fun box(): String {
|
|||||||
res = A().nextBuffer()
|
res = A().nextBuffer()
|
||||||
}
|
}
|
||||||
return res
|
return res
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
// WITH_STDLIB
|
// WITH_STDLIB
|
||||||
// WITH_COROUTINES
|
// WITH_COROUTINES
|
||||||
// IGNORE_LIGHT_ANALYSIS
|
|
||||||
// !INHERIT_MULTIFILE_PARTS
|
// !INHERIT_MULTIFILE_PARTS
|
||||||
// TARGET_BACKEND: JVM
|
// TARGET_BACKEND: JVM
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
// WITH_STDLIB
|
// WITH_STDLIB
|
||||||
// WITH_COROUTINES
|
// WITH_COROUTINES
|
||||||
// IGNORE_BACKEND: JVM
|
// IGNORE_BACKEND: JVM
|
||||||
// IGNORE_LIGHT_ANALYSIS
|
|
||||||
|
|
||||||
import helpers.*
|
import helpers.*
|
||||||
import kotlin.coroutines.*
|
import kotlin.coroutines.*
|
||||||
|
|||||||
Vendored
+1
-2
@@ -3,7 +3,6 @@
|
|||||||
// WITH_COROUTINES
|
// WITH_COROUTINES
|
||||||
// IGNORE_BACKEND: JVM, JS, JS_IR
|
// IGNORE_BACKEND: JVM, JS, JS_IR
|
||||||
// IGNORE_BACKEND: JS_IR_ES6
|
// IGNORE_BACKEND: JS_IR_ES6
|
||||||
// IGNORE_LIGHT_ANALYSIS
|
|
||||||
|
|
||||||
import helpers.*
|
import helpers.*
|
||||||
import kotlin.coroutines.*
|
import kotlin.coroutines.*
|
||||||
@@ -36,4 +35,4 @@ fun box(): String {
|
|||||||
if (test != "OKEmptyOK42") return "failed: $test"
|
if (test != "OKEmptyOK42") return "failed: $test"
|
||||||
|
|
||||||
return "OK"
|
return "OK"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,7 +2,6 @@
|
|||||||
// WITH_STDLIB
|
// WITH_STDLIB
|
||||||
// WITH_COROUTINES
|
// WITH_COROUTINES
|
||||||
// IGNORE_BACKEND: JVM
|
// IGNORE_BACKEND: JVM
|
||||||
// IGNORE_LIGHT_ANALYSIS
|
|
||||||
|
|
||||||
import helpers.*
|
import helpers.*
|
||||||
import kotlin.coroutines.*
|
import kotlin.coroutines.*
|
||||||
@@ -22,4 +21,4 @@ fun box(): String {
|
|||||||
test = runS(lambda)
|
test = runS(lambda)
|
||||||
}
|
}
|
||||||
return test
|
return test
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-2
@@ -2,7 +2,6 @@
|
|||||||
// WITH_STDLIB
|
// WITH_STDLIB
|
||||||
// WITH_COROUTINES
|
// WITH_COROUTINES
|
||||||
// IGNORE_BACKEND: JVM
|
// IGNORE_BACKEND: JVM
|
||||||
// IGNORE_LIGHT_ANALYSIS
|
|
||||||
// IGNORE_INLINER: IR
|
// IGNORE_INLINER: IR
|
||||||
|
|
||||||
// `lambda` should not be wrapped in yet another object (so no OnInlineArgumentKt$box$1$1).
|
// `lambda` should not be wrapped in yet another object (so no OnInlineArgumentKt$box$1$1).
|
||||||
@@ -20,4 +19,4 @@ fun box(): String {
|
|||||||
val lambda: (String) -> String = { it + "K" }
|
val lambda: (String) -> String = { it + "K" }
|
||||||
suspend { test = runS(lambda) }.startCoroutine(EmptyContinuation)
|
suspend { test = runS(lambda) }.startCoroutine(EmptyContinuation)
|
||||||
return test
|
return test
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-2
@@ -3,7 +3,6 @@
|
|||||||
// WITH_COROUTINES
|
// WITH_COROUTINES
|
||||||
// IGNORE_BACKEND: JVM, JS, JS_IR
|
// IGNORE_BACKEND: JVM, JS, JS_IR
|
||||||
// IGNORE_BACKEND: JS_IR_ES6
|
// IGNORE_BACKEND: JS_IR_ES6
|
||||||
// IGNORE_LIGHT_ANALYSIS
|
|
||||||
|
|
||||||
import helpers.*
|
import helpers.*
|
||||||
import kotlin.coroutines.*
|
import kotlin.coroutines.*
|
||||||
@@ -45,4 +44,4 @@ fun box(): String {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return test
|
return test
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
// IGNORE_BACKEND: JVM
|
// IGNORE_BACKEND: JVM
|
||||||
// IGNORE_LIGHT_ANALYSIS
|
|
||||||
|
|
||||||
object D {
|
object D {
|
||||||
operator fun getValue(a: Any?, b: Any?): String = "OK"
|
operator fun getValue(a: Any?, b: Any?): String = "OK"
|
||||||
@@ -11,4 +10,4 @@ enum class A {
|
|||||||
val b = a
|
val b = a
|
||||||
}
|
}
|
||||||
|
|
||||||
fun box() = A.GOO.b
|
fun box() = A.GOO.b
|
||||||
|
|||||||
-3
@@ -4,9 +4,6 @@
|
|||||||
// IGNORE_BACKEND: JVM
|
// IGNORE_BACKEND: JVM
|
||||||
// IGNORE_FIR_DIAGNOSTICS_DIFF
|
// IGNORE_FIR_DIAGNOSTICS_DIFF
|
||||||
|
|
||||||
// Light analysis thinks this test passes but it doesn't because JVM backend does not compile this into a tailrec function.
|
|
||||||
// IGNORE_LIGHT_ANALYSIS
|
|
||||||
|
|
||||||
class C {
|
class C {
|
||||||
companion object {
|
companion object {
|
||||||
<!NO_TAIL_CALLS_FOUND!>tailrec<!> fun rec(i: Int) {
|
<!NO_TAIL_CALLS_FOUND!>tailrec<!> fun rec(i: Int) {
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
// !LANGUAGE: +EnumEntries
|
// !LANGUAGE: +EnumEntries
|
||||||
// IGNORE_BACKEND: JS, JVM
|
// IGNORE_BACKEND: JS, JVM
|
||||||
// IGNORE_LIGHT_ANALYSIS
|
|
||||||
// FULL_JDK
|
// FULL_JDK
|
||||||
// WITH_STDLIB
|
// WITH_STDLIB
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
// !LANGUAGE: +EnumEntries
|
// !LANGUAGE: +EnumEntries
|
||||||
// IGNORE_BACKEND: JS, JVM
|
// IGNORE_BACKEND: JS, JVM
|
||||||
// IGNORE_LIGHT_ANALYSIS
|
|
||||||
// FULL_JDK
|
// FULL_JDK
|
||||||
// WITH_STDLIB
|
// WITH_STDLIB
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
// TARGET_BACKEND: JVM
|
// TARGET_BACKEND: JVM
|
||||||
// IGNORE_LIGHT_ANALYSIS
|
|
||||||
// WITH_STDLIB
|
// WITH_STDLIB
|
||||||
// JVM_TARGET: 1.8
|
// JVM_TARGET: 1.8
|
||||||
// IGNORE_BACKEND: ANDROID
|
// IGNORE_BACKEND: ANDROID
|
||||||
|
|||||||
+1
-2
@@ -1,5 +1,4 @@
|
|||||||
// WITH_STDLIB
|
// WITH_STDLIB
|
||||||
// IGNORE_LIGHT_ANALYSIS
|
|
||||||
// IGNORE_BACKEND: JVM
|
// IGNORE_BACKEND: JVM
|
||||||
// LANGUAGE: +InlineClassImplementationByDelegation
|
// LANGUAGE: +InlineClassImplementationByDelegation
|
||||||
|
|
||||||
@@ -16,4 +15,4 @@ fun box(): String {
|
|||||||
val ic: I = IC(i)
|
val ic: I = IC(i)
|
||||||
res = ic.ok()
|
res = ic.ok()
|
||||||
return res
|
return res
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-2
@@ -1,5 +1,4 @@
|
|||||||
// WITH_STDLIB
|
// WITH_STDLIB
|
||||||
// IGNORE_LIGHT_ANALYSIS
|
|
||||||
// IGNORE_BACKEND: JVM
|
// IGNORE_BACKEND: JVM
|
||||||
// LANGUAGE: +InlineClassImplementationByDelegation
|
// LANGUAGE: +InlineClassImplementationByDelegation
|
||||||
|
|
||||||
@@ -24,4 +23,4 @@ fun box(): String {
|
|||||||
if (res != "OKK") return "FAIL 4: $res"
|
if (res != "OKK") return "FAIL 4: $res"
|
||||||
|
|
||||||
return "OK"
|
return "OK"
|
||||||
}
|
}
|
||||||
|
|||||||
Vendored
+1
-2
@@ -1,5 +1,4 @@
|
|||||||
// WITH_STDLIB
|
// WITH_STDLIB
|
||||||
// IGNORE_LIGHT_ANALYSIS
|
|
||||||
// IGNORE_BACKEND: JVM
|
// IGNORE_BACKEND: JVM
|
||||||
// LANGUAGE: +InlineClassImplementationByDelegation, +GenericInlineClassParameter
|
// LANGUAGE: +InlineClassImplementationByDelegation, +GenericInlineClassParameter
|
||||||
|
|
||||||
@@ -24,4 +23,4 @@ fun box(): String {
|
|||||||
if (res != "OKK") return "FAIL 4: $res"
|
if (res != "OKK") return "FAIL 4: $res"
|
||||||
|
|
||||||
return "OK"
|
return "OK"
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-2
@@ -1,5 +1,4 @@
|
|||||||
// WITH_STDLIB
|
// WITH_STDLIB
|
||||||
// IGNORE_LIGHT_ANALYSIS
|
|
||||||
// IGNORE_BACKEND: JVM
|
// IGNORE_BACKEND: JVM
|
||||||
// LANGUAGE: +InlineClassImplementationByDelegation, +GenericInlineClassParameter
|
// LANGUAGE: +InlineClassImplementationByDelegation, +GenericInlineClassParameter
|
||||||
|
|
||||||
@@ -16,4 +15,4 @@ fun box(): String {
|
|||||||
val ic: I = IC(i)
|
val ic: I = IC(i)
|
||||||
res = ic.ok()
|
res = ic.ok()
|
||||||
return res
|
return res
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-2
@@ -1,5 +1,4 @@
|
|||||||
// WITH_STDLIB
|
// WITH_STDLIB
|
||||||
// IGNORE_LIGHT_ANALYSIS
|
|
||||||
// IGNORE_BACKEND: JVM
|
// IGNORE_BACKEND: JVM
|
||||||
// LANGUAGE: +InlineClassImplementationByDelegation
|
// LANGUAGE: +InlineClassImplementationByDelegation
|
||||||
|
|
||||||
@@ -18,4 +17,4 @@ fun box(): String {
|
|||||||
val ic: I = IC(i)
|
val ic: I = IC(i)
|
||||||
res = ic.ok()
|
res = ic.ok()
|
||||||
return res
|
return res
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-2
@@ -1,5 +1,4 @@
|
|||||||
// WITH_STDLIB
|
// WITH_STDLIB
|
||||||
// IGNORE_LIGHT_ANALYSIS
|
|
||||||
// IGNORE_BACKEND: JVM
|
// IGNORE_BACKEND: JVM
|
||||||
// LANGUAGE: +InlineClassImplementationByDelegation, +GenericInlineClassParameter
|
// LANGUAGE: +InlineClassImplementationByDelegation, +GenericInlineClassParameter
|
||||||
|
|
||||||
@@ -18,4 +17,4 @@ fun box(): String {
|
|||||||
val ic: I = IC(i)
|
val ic: I = IC(i)
|
||||||
res = ic.ok()
|
res = ic.ok()
|
||||||
return res
|
return res
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
// IGNORE_BACKEND: JVM
|
// IGNORE_BACKEND: JVM
|
||||||
// IGNORE_LIGHT_ANALYSIS
|
|
||||||
|
|
||||||
fun box(): String =
|
fun box(): String =
|
||||||
testBug(null)
|
testBug(null)
|
||||||
|
|||||||
+1
-2
@@ -1,6 +1,5 @@
|
|||||||
// WITH_STDLIB
|
// WITH_STDLIB
|
||||||
// IGNORE_BACKEND: JVM
|
// IGNORE_BACKEND: JVM
|
||||||
// IGNORE_LIGHT_ANALYSIS
|
|
||||||
// WORKS_WHEN_VALUE_CLASS
|
// WORKS_WHEN_VALUE_CLASS
|
||||||
// LANGUAGE: +ValueClasses
|
// LANGUAGE: +ValueClasses
|
||||||
|
|
||||||
@@ -54,4 +53,4 @@ fun box(): String {
|
|||||||
ex2(Result.success(2))
|
ex2(Result.success(2))
|
||||||
ex3(Result.success(3))
|
ex3(Result.success(3))
|
||||||
return if (result == "Ex 1\nEx 2\nEx 3\n") "OK" else "FAIL $result"
|
return if (result == "Ex 1\nEx 2\nEx 3\n") "OK" else "FAIL $result"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
// WITH_STDLIB
|
// WITH_STDLIB
|
||||||
// IGNORE_BACKEND: JVM
|
// IGNORE_BACKEND: JVM
|
||||||
// IGNORE_LIGHT_ANALYSIS
|
|
||||||
// WORKS_WHEN_VALUE_CLASS
|
// WORKS_WHEN_VALUE_CLASS
|
||||||
// LANGUAGE: +ValueClasses
|
// LANGUAGE: +ValueClasses
|
||||||
|
|
||||||
|
|||||||
-1
@@ -1,6 +1,5 @@
|
|||||||
// WITH_STDLIB
|
// WITH_STDLIB
|
||||||
// IGNORE_BACKEND: JVM
|
// IGNORE_BACKEND: JVM
|
||||||
// IGNORE_LIGHT_ANALYSIS
|
|
||||||
// WORKS_WHEN_VALUE_CLASS
|
// WORKS_WHEN_VALUE_CLASS
|
||||||
// LANGUAGE: +ValueClasses, +GenericInlineClassParameter
|
// LANGUAGE: +ValueClasses, +GenericInlineClassParameter
|
||||||
|
|
||||||
|
|||||||
Vendored
+1
-2
@@ -1,6 +1,5 @@
|
|||||||
// WITH_STDLIB
|
// WITH_STDLIB
|
||||||
// IGNORE_BACKEND: JVM
|
// IGNORE_BACKEND: JVM
|
||||||
// IGNORE_LIGHT_ANALYSIS
|
|
||||||
|
|
||||||
fun <T> foo(a: Result<T>?): T? = bar(a, object : IFace<Result<T>, T> {
|
fun <T> foo(a: Result<T>?): T? = bar(a, object : IFace<Result<T>, T> {
|
||||||
override fun call(ic: Result<T>?): T? = ic?.getOrThrow()
|
override fun call(ic: Result<T>?): T? = ic?.getOrThrow()
|
||||||
@@ -20,4 +19,4 @@ fun box(): String {
|
|||||||
res = foo<Int>(null)
|
res = foo<Int>(null)
|
||||||
if (res != null) return "FAIL $res"
|
if (res != null) return "FAIL $res"
|
||||||
return "OK"
|
return "OK"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
// TARGET_BACKEND: JVM
|
// TARGET_BACKEND: JVM
|
||||||
// IGNORE_BACKEND: JVM
|
// IGNORE_BACKEND: JVM
|
||||||
// IGNORE_LIGHT_ANALYSIS
|
|
||||||
// JVM_TARGET: 1.8
|
// JVM_TARGET: 1.8
|
||||||
// LAMBDAS: INDY
|
// LAMBDAS: INDY
|
||||||
|
|
||||||
|
|||||||
-1
@@ -1,5 +1,4 @@
|
|||||||
// TARGET_BACKEND: JVM
|
// TARGET_BACKEND: JVM
|
||||||
// IGNORE_LIGHT_ANALYSIS
|
|
||||||
// IGNORE_BACKEND: JVM
|
// IGNORE_BACKEND: JVM
|
||||||
// JVM_TARGET: 1.8
|
// JVM_TARGET: 1.8
|
||||||
// SAM_CONVERSIONS: INDY
|
// SAM_CONVERSIONS: INDY
|
||||||
|
|||||||
-1
@@ -1,5 +1,4 @@
|
|||||||
// TARGET_BACKEND: JVM
|
// TARGET_BACKEND: JVM
|
||||||
// IGNORE_LIGHT_ANALYSIS
|
|
||||||
// IGNORE_BACKEND: JVM
|
// IGNORE_BACKEND: JVM
|
||||||
// JVM_TARGET: 1.8
|
// JVM_TARGET: 1.8
|
||||||
// SAM_CONVERSIONS: INDY
|
// SAM_CONVERSIONS: INDY
|
||||||
|
|||||||
Vendored
+1
-2
@@ -1,6 +1,5 @@
|
|||||||
// TARGET_BACKEND: JVM
|
// TARGET_BACKEND: JVM
|
||||||
// IGNORE_BACKEND: JVM
|
// IGNORE_BACKEND: JVM
|
||||||
// IGNORE_LIGHT_ANALYSIS
|
|
||||||
// JVM_TARGET: 1.8
|
// JVM_TARGET: 1.8
|
||||||
// SAM_CONVERSIONS: INDY
|
// SAM_CONVERSIONS: INDY
|
||||||
|
|
||||||
@@ -22,4 +21,4 @@ fun box(): String {
|
|||||||
if (t.value != 42) return "Failed: t=$t"
|
if (t.value != 42) return "Failed: t=$t"
|
||||||
|
|
||||||
return "OK"
|
return "OK"
|
||||||
}
|
}
|
||||||
|
|||||||
Vendored
+1
-2
@@ -1,6 +1,5 @@
|
|||||||
// TARGET_BACKEND: JVM
|
// TARGET_BACKEND: JVM
|
||||||
// IGNORE_BACKEND: JVM
|
// IGNORE_BACKEND: JVM
|
||||||
// IGNORE_LIGHT_ANALYSIS
|
|
||||||
// JVM_TARGET: 1.8
|
// JVM_TARGET: 1.8
|
||||||
// SAM_CONVERSIONS: INDY
|
// SAM_CONVERSIONS: INDY
|
||||||
|
|
||||||
@@ -22,4 +21,4 @@ fun box(): String {
|
|||||||
if (t.value != 42) return "Failed: t=$t"
|
if (t.value != 42) return "Failed: t=$t"
|
||||||
|
|
||||||
return "OK"
|
return "OK"
|
||||||
}
|
}
|
||||||
|
|||||||
compiler/testData/codegen/box/invokedynamic/sam/inlineClassInSignature/funInterfaceWithInlineNAny.kt
Vendored
+1
-2
@@ -1,6 +1,5 @@
|
|||||||
// TARGET_BACKEND: JVM
|
// TARGET_BACKEND: JVM
|
||||||
// IGNORE_BACKEND: JVM
|
// IGNORE_BACKEND: JVM
|
||||||
// IGNORE_LIGHT_ANALYSIS
|
|
||||||
// JVM_TARGET: 1.8
|
// JVM_TARGET: 1.8
|
||||||
// SAM_CONVERSIONS: INDY
|
// SAM_CONVERSIONS: INDY
|
||||||
|
|
||||||
@@ -22,4 +21,4 @@ fun box(): String {
|
|||||||
if (t.value != 42) return "Failed: t=$t"
|
if (t.value != 42) return "Failed: t=$t"
|
||||||
|
|
||||||
return "OK"
|
return "OK"
|
||||||
}
|
}
|
||||||
|
|||||||
compiler/testData/codegen/box/invokedynamic/sam/inlineClassInSignature/funInterfaceWithInlineNInt.kt
Vendored
+1
-2
@@ -1,6 +1,5 @@
|
|||||||
// TARGET_BACKEND: JVM
|
// TARGET_BACKEND: JVM
|
||||||
// IGNORE_BACKEND: JVM
|
// IGNORE_BACKEND: JVM
|
||||||
// IGNORE_LIGHT_ANALYSIS
|
|
||||||
// JVM_TARGET: 1.8
|
// JVM_TARGET: 1.8
|
||||||
// SAM_CONVERSIONS: INDY
|
// SAM_CONVERSIONS: INDY
|
||||||
|
|
||||||
@@ -22,4 +21,4 @@ fun box(): String {
|
|||||||
if (t.value != 42) return "Failed: t=$t"
|
if (t.value != 42) return "Failed: t=$t"
|
||||||
|
|
||||||
return "OK"
|
return "OK"
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-2
@@ -1,6 +1,5 @@
|
|||||||
// TARGET_BACKEND: JVM
|
// TARGET_BACKEND: JVM
|
||||||
// IGNORE_BACKEND: JVM
|
// IGNORE_BACKEND: JVM
|
||||||
// IGNORE_LIGHT_ANALYSIS
|
|
||||||
// JVM_TARGET: 1.8
|
// JVM_TARGET: 1.8
|
||||||
// SAM_CONVERSIONS: INDY
|
// SAM_CONVERSIONS: INDY
|
||||||
|
|
||||||
@@ -22,4 +21,4 @@ fun box(): String {
|
|||||||
if (t.value != "OK") return "Failed: t=$t"
|
if (t.value != "OK") return "Failed: t=$t"
|
||||||
|
|
||||||
return "OK"
|
return "OK"
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-2
@@ -1,6 +1,5 @@
|
|||||||
// TARGET_BACKEND: JVM
|
// TARGET_BACKEND: JVM
|
||||||
// IGNORE_BACKEND: JVM
|
// IGNORE_BACKEND: JVM
|
||||||
// IGNORE_LIGHT_ANALYSIS
|
|
||||||
// JVM_TARGET: 1.8
|
// JVM_TARGET: 1.8
|
||||||
// SAM_CONVERSIONS: INDY
|
// SAM_CONVERSIONS: INDY
|
||||||
|
|
||||||
@@ -22,4 +21,4 @@ fun box(): String {
|
|||||||
if (t.value != "OK") return "Failed: t=$t"
|
if (t.value != "OK") return "Failed: t=$t"
|
||||||
|
|
||||||
return "OK"
|
return "OK"
|
||||||
}
|
}
|
||||||
|
|||||||
Vendored
-2
@@ -1,6 +1,5 @@
|
|||||||
// TARGET_BACKEND: JVM
|
// TARGET_BACKEND: JVM
|
||||||
// IGNORE_BACKEND: JVM
|
// IGNORE_BACKEND: JVM
|
||||||
// IGNORE_LIGHT_ANALYSIS
|
|
||||||
// JVM_TARGET: 1.8
|
// JVM_TARGET: 1.8
|
||||||
// SAM_CONVERSIONS: INDY
|
// SAM_CONVERSIONS: INDY
|
||||||
|
|
||||||
@@ -35,4 +34,3 @@ fun box(): String {
|
|||||||
|
|
||||||
return "OK"
|
return "OK"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
// !LANGUAGE: +SuspendFunctionsInFunInterfaces +JvmIrEnabledByDefault
|
// !LANGUAGE: +SuspendFunctionsInFunInterfaces +JvmIrEnabledByDefault
|
||||||
// TARGET_BACKEND: JVM
|
// TARGET_BACKEND: JVM
|
||||||
// IGNORE_BACKEND: JVM
|
// IGNORE_BACKEND: JVM
|
||||||
// IGNORE_LIGHT_ANALYSIS
|
|
||||||
// JVM_TARGET: 1.8
|
// JVM_TARGET: 1.8
|
||||||
// SAM_CONVERSIONS: INDY
|
// SAM_CONVERSIONS: INDY
|
||||||
// WITH_STDLIB
|
// WITH_STDLIB
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
// !JVM_DEFAULT_MODE: all
|
// !JVM_DEFAULT_MODE: all
|
||||||
// TARGET_BACKEND: JVM
|
// TARGET_BACKEND: JVM
|
||||||
// IGNORE_BACKEND: JVM
|
// IGNORE_BACKEND: JVM
|
||||||
// IGNORE_LIGHT_ANALYSIS
|
|
||||||
// JVM_TARGET: 1.8
|
// JVM_TARGET: 1.8
|
||||||
|
|
||||||
// FILE: Kotlin.kt
|
// FILE: Kotlin.kt
|
||||||
interface Foo<T> {
|
interface Foo<T> {
|
||||||
fun foo(p: T): T = p
|
fun foo(p: T): T = p
|
||||||
|
|||||||
-1
@@ -1,6 +1,5 @@
|
|||||||
// TARGET_BACKEND: JVM
|
// TARGET_BACKEND: JVM
|
||||||
// WITH_STDLIB
|
// WITH_STDLIB
|
||||||
// IGNORE_LIGHT_ANALYSIS
|
|
||||||
// !INHERIT_MULTIFILE_PARTS
|
// !INHERIT_MULTIFILE_PARTS
|
||||||
|
|
||||||
// FILE: anonymousObject.kt
|
// FILE: anonymousObject.kt
|
||||||
|
|||||||
-1
@@ -1,5 +1,4 @@
|
|||||||
// TARGET_BACKEND: JVM
|
// TARGET_BACKEND: JVM
|
||||||
// IGNORE_LIGHT_ANALYSIS
|
|
||||||
// WITH_STDLIB
|
// WITH_STDLIB
|
||||||
// !INHERIT_MULTIFILE_PARTS
|
// !INHERIT_MULTIFILE_PARTS
|
||||||
// FILE: result.kt
|
// FILE: result.kt
|
||||||
|
|||||||
-1
@@ -1,5 +1,4 @@
|
|||||||
// TARGET_BACKEND: JVM
|
// TARGET_BACKEND: JVM
|
||||||
// IGNORE_LIGHT_ANALYSIS
|
|
||||||
// WITH_STDLIB
|
// WITH_STDLIB
|
||||||
// !INHERIT_MULTIFILE_PARTS
|
// !INHERIT_MULTIFILE_PARTS
|
||||||
// FILE: box.kt
|
// FILE: box.kt
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
// TARGET_BACKEND: JVM
|
// TARGET_BACKEND: JVM
|
||||||
// IGNORE_LIGHT_ANALYSIS
|
|
||||||
// WITH_STDLIB
|
// WITH_STDLIB
|
||||||
// !INHERIT_MULTIFILE_PARTS
|
// !INHERIT_MULTIFILE_PARTS
|
||||||
// FILE: box.kt
|
// FILE: box.kt
|
||||||
|
|||||||
Vendored
-1
@@ -1,5 +1,4 @@
|
|||||||
// TARGET_BACKEND: JVM
|
// TARGET_BACKEND: JVM
|
||||||
// IGNORE_LIGHT_ANALYSIS
|
|
||||||
// WITH_STDLIB
|
// WITH_STDLIB
|
||||||
// !INHERIT_MULTIFILE_PARTS
|
// !INHERIT_MULTIFILE_PARTS
|
||||||
// FILE: box.kt
|
// FILE: box.kt
|
||||||
|
|||||||
-1
@@ -1,5 +1,4 @@
|
|||||||
// TARGET_BACKEND: JVM
|
// TARGET_BACKEND: JVM
|
||||||
// IGNORE_LIGHT_ANALYSIS
|
|
||||||
// WITH_STDLIB
|
// WITH_STDLIB
|
||||||
// !INHERIT_MULTIFILE_PARTS
|
// !INHERIT_MULTIFILE_PARTS
|
||||||
// FILE: box.kt
|
// FILE: box.kt
|
||||||
|
|||||||
-1
@@ -1,5 +1,4 @@
|
|||||||
// TARGET_BACKEND: JVM
|
// TARGET_BACKEND: JVM
|
||||||
// IGNORE_LIGHT_ANALYSIS
|
|
||||||
// WITH_STDLIB
|
// WITH_STDLIB
|
||||||
// !INHERIT_MULTIFILE_PARTS
|
// !INHERIT_MULTIFILE_PARTS
|
||||||
// FILE: box.kt
|
// FILE: box.kt
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
// TARGET_BACKEND: JVM
|
// TARGET_BACKEND: JVM
|
||||||
// IGNORE_LIGHT_ANALYSIS
|
|
||||||
// WITH_STDLIB
|
// WITH_STDLIB
|
||||||
// !INHERIT_MULTIFILE_PARTS
|
// !INHERIT_MULTIFILE_PARTS
|
||||||
// FILE: Baz.java
|
// FILE: Baz.java
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
// TARGET_BACKEND: JVM
|
// TARGET_BACKEND: JVM
|
||||||
// IGNORE_LIGHT_ANALYSIS
|
|
||||||
// WITH_STDLIB
|
// WITH_STDLIB
|
||||||
// !INHERIT_MULTIFILE_PARTS
|
// !INHERIT_MULTIFILE_PARTS
|
||||||
|
|
||||||
|
|||||||
-1
@@ -1,6 +1,5 @@
|
|||||||
// TARGET_BACKEND: JVM
|
// TARGET_BACKEND: JVM
|
||||||
// IGNORE_BACKEND: ANDROID
|
// IGNORE_BACKEND: ANDROID
|
||||||
// IGNORE_LIGHT_ANALYSIS
|
|
||||||
// WITH_STDLIB
|
// WITH_STDLIB
|
||||||
// !INHERIT_MULTIFILE_PARTS
|
// !INHERIT_MULTIFILE_PARTS
|
||||||
// FILE: ccc.kt
|
// FILE: ccc.kt
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
// TARGET_BACKEND: JVM
|
// TARGET_BACKEND: JVM
|
||||||
// IGNORE_LIGHT_ANALYSIS
|
|
||||||
// WITH_STDLIB
|
// WITH_STDLIB
|
||||||
// !INHERIT_MULTIFILE_PARTS
|
// !INHERIT_MULTIFILE_PARTS
|
||||||
// FILE: box.kt
|
// FILE: box.kt
|
||||||
|
|||||||
Vendored
-1
@@ -1,7 +1,6 @@
|
|||||||
// !LANGUAGE: +StrictJavaNullabilityAssertions +ProhibitUsingNullableTypeParameterAgainstNotNullAnnotated +DefinitelyNonNullableTypes
|
// !LANGUAGE: +StrictJavaNullabilityAssertions +ProhibitUsingNullableTypeParameterAgainstNotNullAnnotated +DefinitelyNonNullableTypes
|
||||||
// TARGET_BACKEND: JVM
|
// TARGET_BACKEND: JVM
|
||||||
// IGNORE_BACKEND: JVM
|
// IGNORE_BACKEND: JVM
|
||||||
// IGNORE_LIGHT_ANALYSIS
|
|
||||||
|
|
||||||
// FILE: box.kt
|
// FILE: box.kt
|
||||||
fun box(): String {
|
fun box(): String {
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
// IGNORE_BACKEND: JVM
|
// IGNORE_BACKEND: JVM
|
||||||
// IGNORE_LIGHT_ANALYSIS
|
|
||||||
// WITH_STDLIB
|
// WITH_STDLIB
|
||||||
|
|
||||||
fun box(): String {
|
fun box(): String {
|
||||||
|
|||||||
Vendored
-1
@@ -1,6 +1,5 @@
|
|||||||
// IGNORE_BACKEND: JVM
|
// IGNORE_BACKEND: JVM
|
||||||
// See KT-38833: Runtime exception is "java.lang.ClassCastException: java.lang.Integer cannot be cast to kotlin.UInt"
|
// See KT-38833: Runtime exception is "java.lang.ClassCastException: java.lang.Integer cannot be cast to kotlin.UInt"
|
||||||
// IGNORE_LIGHT_ANALYSIS
|
|
||||||
// WITH_STDLIB
|
// WITH_STDLIB
|
||||||
|
|
||||||
fun box(): String {
|
fun box(): String {
|
||||||
|
|||||||
-1
@@ -1,6 +1,5 @@
|
|||||||
// IGNORE_BACKEND: JVM
|
// IGNORE_BACKEND: JVM
|
||||||
// See KT-38833: Runtime exception is "java.lang.ClassCastException: java.lang.Integer cannot be cast to kotlin.UInt"
|
// See KT-38833: Runtime exception is "java.lang.ClassCastException: java.lang.Integer cannot be cast to kotlin.UInt"
|
||||||
// IGNORE_LIGHT_ANALYSIS
|
|
||||||
// WITH_STDLIB
|
// WITH_STDLIB
|
||||||
|
|
||||||
fun box(): String {
|
fun box(): String {
|
||||||
|
|||||||
-1
@@ -1,6 +1,5 @@
|
|||||||
// IGNORE_BACKEND: JVM
|
// IGNORE_BACKEND: JVM
|
||||||
// See KT-38833: Runtime exception is "java.lang.ClassCastException: java.lang.Integer cannot be cast to kotlin.UInt"
|
// See KT-38833: Runtime exception is "java.lang.ClassCastException: java.lang.Integer cannot be cast to kotlin.UInt"
|
||||||
// IGNORE_LIGHT_ANALYSIS
|
|
||||||
// WITH_STDLIB
|
// WITH_STDLIB
|
||||||
|
|
||||||
fun box(): String {
|
fun box(): String {
|
||||||
|
|||||||
Vendored
+1
-2
@@ -1,6 +1,5 @@
|
|||||||
// TARGET_BACKEND: JVM
|
// TARGET_BACKEND: JVM
|
||||||
// WITH_STDLIB
|
// WITH_STDLIB
|
||||||
// IGNORE_LIGHT_ANALYSIS
|
|
||||||
// IGNORE_BACKEND: JVM
|
// IGNORE_BACKEND: JVM
|
||||||
|
|
||||||
// FILE: test.kt
|
// FILE: test.kt
|
||||||
@@ -27,4 +26,4 @@ import c1.*
|
|||||||
|
|
||||||
class C2 : C1() {
|
class C2 : C1() {
|
||||||
fun b() = { test("OK") }
|
fun b() = { test("OK") }
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
// TARGET_BACKEND: JVM
|
// TARGET_BACKEND: JVM
|
||||||
// WITH_STDLIB
|
// WITH_STDLIB
|
||||||
// IGNORE_LIGHT_ANALYSIS
|
|
||||||
|
|
||||||
// FILE: SingletonCollection.kt
|
// FILE: SingletonCollection.kt
|
||||||
package test
|
package test
|
||||||
@@ -66,4 +65,4 @@ fun box(): String {
|
|||||||
if (test6[0] != 42) return "Failed #6"
|
if (test6[0] != 42) return "Failed #6"
|
||||||
|
|
||||||
return "OK"
|
return "OK"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user