Add regression tests for obsolete issues
#KT-9304 #KT-14961 #KT-16549 #KT-21080 #KT-28234 #KT-30102 #KT-31994 #KT-34291 #KT-38099 #KT-41174 #KT-44622 #KT-44701 #KT-44781 #KT-44849 #KT-44978 #KT-45081 #KT-45286 #KT-45383 #KT-45444 #KT-45907
This commit is contained in:
+102
@@ -840,6 +840,12 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT
|
||||
runTest("compiler/testData/codegen/box/arrays/kt33.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt34291_16dimensions.kt")
|
||||
public void testKt34291_16dimensions() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/arrays/kt34291_16dimensions.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt3771.kt")
|
||||
public void testKt3771() throws Exception {
|
||||
@@ -6161,6 +6167,12 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT
|
||||
@TestMetadata("compiler/testData/codegen/box/compileKotlinAgainstKotlin")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class CompileKotlinAgainstKotlin {
|
||||
@Test
|
||||
@TestMetadata("adaptedSuspendFunctionReference.kt")
|
||||
public void testAdaptedSuspendFunctionReference() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/adaptedSuspendFunctionReference.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testAllFilesPresentInCompileKotlinAgainstKotlin() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/compileKotlinAgainstKotlin"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||
@@ -6653,6 +6665,12 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT
|
||||
runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/inlineClasses/defaultWithInlineClassAndReceivers.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("funInterface.kt")
|
||||
public void testFunInterface() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/inlineClasses/funInterface.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("inlineClassFakeOverrideMangling.kt")
|
||||
public void testInlineClassFakeOverrideMangling() throws Exception {
|
||||
@@ -9024,6 +9042,12 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT
|
||||
runTest("compiler/testData/codegen/box/coroutines/kt15930.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt21080.kt")
|
||||
public void testKt21080() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/coroutines/kt21080.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt21605.kt")
|
||||
public void testKt21605() throws Exception {
|
||||
@@ -9066,6 +9090,12 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT
|
||||
runTest("compiler/testData/codegen/box/coroutines/kt35967.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt38099.kt")
|
||||
public void testKt38099() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/coroutines/kt38099.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt42028.kt")
|
||||
public void testKt42028() throws Exception {
|
||||
@@ -9090,6 +9120,12 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT
|
||||
runTest("compiler/testData/codegen/box/coroutines/kt44710.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt44781.kt")
|
||||
public void testKt44781() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/coroutines/kt44781.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt45377.kt")
|
||||
public void testKt45377() throws Exception {
|
||||
@@ -9830,6 +9866,12 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT
|
||||
@TestMetadata("compiler/testData/codegen/box/coroutines/featureIntersection/callableReference/function")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class Function {
|
||||
@Test
|
||||
@TestMetadata("adapted.kt")
|
||||
public void testAdapted() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/coroutines/featureIntersection/callableReference/function/adapted.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testAllFilesPresentInFunction() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/featureIntersection/callableReference/function"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||
@@ -13466,6 +13508,12 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT
|
||||
runTest("compiler/testData/codegen/box/delegation/inDataClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt30102_comparable.kt")
|
||||
public void testKt30102_comparable() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/delegation/kt30102_comparable.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt8154.kt")
|
||||
public void testKt8154() throws Exception {
|
||||
@@ -13798,6 +13846,18 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT
|
||||
runTest("compiler/testData/codegen/box/diagnostics/functions/tailRecursion/realStringRepeat.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("recursiveCallInInlineLambda.kt")
|
||||
public void testRecursiveCallInInlineLambda() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/diagnostics/functions/tailRecursion/recursiveCallInInlineLambda.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("recursiveCallInInlineLambdaWithCapture.kt")
|
||||
public void testRecursiveCallInInlineLambdaWithCapture() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/diagnostics/functions/tailRecursion/recursiveCallInInlineLambdaWithCapture.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("recursiveCallInLambda.kt")
|
||||
public void testRecursiveCallInLambda() throws Exception {
|
||||
@@ -15512,6 +15572,12 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT
|
||||
runTest("compiler/testData/codegen/box/funInterface/kt44827_funInterface.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt45444_privateFunInterface.kt")
|
||||
public void testKt45444_privateFunInterface() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/funInterface/kt45444_privateFunInterface.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("multimodule.kt")
|
||||
public void testMultimodule() throws Exception {
|
||||
@@ -18002,6 +18068,12 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/kt28920_javaPrimitiveType.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt31994.kt")
|
||||
public void testKt31994() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/kt31994.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt32793.kt")
|
||||
public void testKt32793() throws Exception {
|
||||
@@ -18056,12 +18128,24 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/kt44141.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt44701_jvmOverloads.kt")
|
||||
public void testKt44701_jvmOverloads() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/kt44701_jvmOverloads.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt44867.kt")
|
||||
public void testKt44867() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/kt44867.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt44978.kt")
|
||||
public void testKt44978() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/kt44978.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt45991.kt")
|
||||
public void testKt45991() throws Exception {
|
||||
@@ -24372,6 +24456,12 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT
|
||||
runTest("compiler/testData/codegen/box/localClasses/kt4174.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt45383.kt")
|
||||
public void testKt45383() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/localClasses/kt45383.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("localClass.kt")
|
||||
public void testLocalClass() throws Exception {
|
||||
@@ -34657,6 +34747,12 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT
|
||||
runTest("compiler/testData/codegen/box/reflection/enclosing/kt11969.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt45907.kt")
|
||||
public void testKt45907() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/reflection/enclosing/kt45907.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt6368.kt")
|
||||
public void testKt6368() throws Exception {
|
||||
@@ -41306,6 +41402,12 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT
|
||||
runTest("compiler/testData/codegen/box/when/kt43242.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt45081.kt")
|
||||
public void testKt45081() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/when/kt45081.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt5307.kt")
|
||||
public void testKt5307() throws Exception {
|
||||
|
||||
+18
@@ -298,6 +298,12 @@ public class FirBlackBoxInlineCodegenTestGenerated extends AbstractFirBlackBoxIn
|
||||
runTest("compiler/testData/codegen/boxInline/anonymousObject/kt38197.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt41174.kt")
|
||||
public void testKt41174() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/anonymousObject/kt41174.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt42815.kt")
|
||||
public void testKt42815() throws Exception {
|
||||
@@ -2902,6 +2908,12 @@ public class FirBlackBoxInlineCodegenTestGenerated extends AbstractFirBlackBoxIn
|
||||
runTest("compiler/testData/codegen/boxInline/nonLocalReturns/kt8948v2.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt9304.kt")
|
||||
public void testKt9304() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/nonLocalReturns/kt9304.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("nestedNonLocals.kt")
|
||||
public void testNestedNonLocals() throws Exception {
|
||||
@@ -3660,6 +3672,12 @@ public class FirBlackBoxInlineCodegenTestGenerated extends AbstractFirBlackBoxIn
|
||||
runTest("compiler/testData/codegen/boxInline/reified/kt18977.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt28234.kt")
|
||||
public void testKt28234() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/reified/kt28234.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt35511.kt")
|
||||
public void testKt35511() throws Exception {
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
fun Array<Array<Array<Array<Array<Array<Array<Array<Array<Array<Array<Array<Array<Array<Array<LongArray>>>>>>>>>>>>>>>.dimensions() = "OK"
|
||||
|
||||
fun box(): String =
|
||||
arrayOf(arrayOf(arrayOf(arrayOf(arrayOf(arrayOf(arrayOf(arrayOf(arrayOf(arrayOf(arrayOf(arrayOf(arrayOf(arrayOf(arrayOf(
|
||||
longArrayOf(42L)
|
||||
))))))))))))))).dimensions()
|
||||
Vendored
+32
@@ -0,0 +1,32 @@
|
||||
// KT-45286
|
||||
// MODULE: lib
|
||||
// WITH_RUNTIME
|
||||
// FILE: A.kt
|
||||
|
||||
package a
|
||||
|
||||
import kotlin.coroutines.*
|
||||
|
||||
var result = "Fail"
|
||||
|
||||
fun f() {
|
||||
result = "OK"
|
||||
}
|
||||
|
||||
fun g(block: suspend () -> Unit) {
|
||||
block.startCoroutine(Continuation(EmptyCoroutineContext) {
|
||||
it.getOrThrow()
|
||||
})
|
||||
}
|
||||
|
||||
inline fun h() = g(::f)
|
||||
|
||||
// MODULE: main(lib)
|
||||
// FILE: B.kt
|
||||
|
||||
package b
|
||||
|
||||
fun box(): String {
|
||||
a.h()
|
||||
return a.result
|
||||
}
|
||||
+22
@@ -0,0 +1,22 @@
|
||||
// KT-44622
|
||||
// MODULE: lib
|
||||
// FILE: A.kt
|
||||
|
||||
package x
|
||||
|
||||
inline class A(val value: String)
|
||||
|
||||
fun interface B {
|
||||
fun method(a: A): String
|
||||
}
|
||||
|
||||
// MODULE: main(lib)
|
||||
// FILE: B.kt
|
||||
|
||||
package y
|
||||
|
||||
import x.*
|
||||
|
||||
val b = B { it.value }
|
||||
|
||||
fun box(): String = b.method(A("OK"))
|
||||
Vendored
+22
@@ -0,0 +1,22 @@
|
||||
// IGNORE_BACKEND: JVM
|
||||
// WITH_RUNTIME
|
||||
// KT-44849
|
||||
|
||||
import kotlin.coroutines.*
|
||||
|
||||
var result = "Fail"
|
||||
|
||||
class Wrapper(val action: suspend () -> Unit) {
|
||||
init {
|
||||
action.startCoroutine(Continuation(EmptyCoroutineContext) { it.getOrThrow() })
|
||||
}
|
||||
}
|
||||
|
||||
suspend fun some(a: String = "OK") {
|
||||
result = a
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
Wrapper(::some)
|
||||
return result
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
// WITH_RUNTIME
|
||||
// WITH_COROUTINES
|
||||
// IGNORE_BACKEND: JVM
|
||||
// IGNORE_BACKEND_FIR: JVM_IR
|
||||
|
||||
import kotlin.coroutines.*
|
||||
import helpers.*
|
||||
|
||||
suspend fun suspendThere(v: A): A = suspendCoroutine { x ->
|
||||
x.resume(v)
|
||||
}
|
||||
|
||||
class A(var value: Int)
|
||||
|
||||
suspend operator fun A?.plus(a: A) = suspendThere(A((this?.value ?: 0) + a.value))
|
||||
class B(var a: A)
|
||||
|
||||
fun builder(c: suspend () -> Unit) {
|
||||
c.startCoroutine(EmptyContinuation)
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
var b: B? = B(A(11))
|
||||
builder { b?.a += A(31) }
|
||||
if (b?.a?.value != 42) return "FAIL 0"
|
||||
return "OK"
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
// TARGET_BACKEND: JVM
|
||||
// IGNORE_BACKEND: JVM
|
||||
// WITH_RUNTIME
|
||||
|
||||
import kotlin.coroutines.*
|
||||
|
||||
object MyObject2 {
|
||||
@JvmStatic
|
||||
suspend fun enable(o: Any) {
|
||||
if (o.hashCode() != 0) {
|
||||
suspendCoroutine<Any> {}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
fun go(block: suspend () -> Unit) {
|
||||
block.startCoroutine(Continuation(EmptyCoroutineContext) { it.getOrThrow() })
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
go {
|
||||
MyObject2.enable("")
|
||||
}
|
||||
return "OK"
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
// WITH_RUNTIME
|
||||
|
||||
import kotlin.coroutines.*
|
||||
|
||||
inline suspend fun foo(crossinline block: () -> String): String {
|
||||
return bar { _ -> block() }
|
||||
}
|
||||
|
||||
suspend fun bar(block: suspend (Int) -> String): String {
|
||||
return block(1)
|
||||
}
|
||||
|
||||
fun launch(block: suspend () -> String): String {
|
||||
var result = ""
|
||||
block.startCoroutine(Continuation(EmptyCoroutineContext) { result = it.getOrThrow() })
|
||||
return result
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
return launch {
|
||||
foo {
|
||||
"OK"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
// IGNORE_BACKEND: JVM
|
||||
|
||||
fun box(): String {
|
||||
val a = BooleanWrap(false)
|
||||
return if (a < true) "OK" else "Fail"
|
||||
}
|
||||
|
||||
class BooleanWrap(private val value: Boolean): Comparable<Boolean> by value
|
||||
Vendored
+27
@@ -0,0 +1,27 @@
|
||||
// KT-16549
|
||||
// IGNORE_BACKEND: JVM
|
||||
|
||||
class TailInline {
|
||||
private inline fun act(action: () -> Unit) {
|
||||
return action()
|
||||
}
|
||||
|
||||
private var countDown = 10
|
||||
|
||||
tailrec fun test(): Int {
|
||||
if (countDown < 5) return countDown
|
||||
act {
|
||||
countDown--
|
||||
if (countDown < 1)
|
||||
return countDown
|
||||
else
|
||||
return test() // GOTO countDown--
|
||||
}
|
||||
return countDown
|
||||
}
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
val result = TailInline().test()
|
||||
return if (result == 4) "OK" else "Fail: $result"
|
||||
}
|
||||
+18
@@ -0,0 +1,18 @@
|
||||
// KT-14961
|
||||
// IGNORE_BACKEND: JVM, JS_IR, WASM
|
||||
// WITH_RUNTIME
|
||||
|
||||
fun listOfFactor(number: Int): List<Int> {
|
||||
tailrec fun listOfFactor(number: Int, acc: List<Int>): List<Int> {
|
||||
(2..number).forEach {
|
||||
if (number % it == 0) return listOfFactor(number / it, acc + it)
|
||||
}
|
||||
return acc
|
||||
}
|
||||
return listOfFactor(number, emptyList())
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
val factors = listOfFactor(60)
|
||||
return if (factors.size == 4) "OK" else "Fail: $factors"
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
// IGNORE_BACKEND: JVM
|
||||
// DONT_TARGET_EXACT_BACKEND: WASM
|
||||
// WASM_MUTE_REASON: SAM_CONVERSIONS
|
||||
|
||||
private fun interface Listener {
|
||||
fun onChanged(): String
|
||||
}
|
||||
|
||||
private class Foo {
|
||||
private val listener = Listener { "OK" }
|
||||
val result = listener.onChanged()
|
||||
}
|
||||
|
||||
private val foo = Foo()
|
||||
|
||||
fun box(): String = foo.result
|
||||
@@ -0,0 +1,15 @@
|
||||
// IGNORE_BACKEND: JVM
|
||||
// IGNORE_LIGHT_ANALYSIS
|
||||
|
||||
fun box(): String =
|
||||
testBug(null)
|
||||
|
||||
fun testBug(test: Test?): String =
|
||||
test?.Inner()?.thing ?: "OK"
|
||||
|
||||
class Test(val name: String) {
|
||||
inner class Inner {
|
||||
val thing: String
|
||||
get() = name
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
// TARGET_BACKEND: JVM
|
||||
// IGNORE_BACKEND: JVM
|
||||
// WITH_RUNTIME
|
||||
|
||||
inline class Location @JvmOverloads constructor(val value: String? = "OK")
|
||||
|
||||
fun box(): String = Location().value!!
|
||||
@@ -0,0 +1,14 @@
|
||||
// IGNORE_BACKEND: JVM
|
||||
// WITH_RUNTIME
|
||||
|
||||
inline class StringArray(val values: Array<String>)
|
||||
|
||||
fun foo(a1: StringArray, a2: StringArray): String {
|
||||
var result = ""
|
||||
for ((_, a) in arrayOf(a1, a2).withIndex()) {
|
||||
result += a.values[0]
|
||||
}
|
||||
return result
|
||||
}
|
||||
|
||||
fun box(): String = foo(StringArray(arrayOf("O")), StringArray(arrayOf("K")))
|
||||
@@ -0,0 +1,10 @@
|
||||
// IGNORE_BACKEND: JVM
|
||||
|
||||
fun box(): String {
|
||||
var cur = 0
|
||||
class Node(l: Int) {
|
||||
val left = if (l > 0) Node(l - 1) else null
|
||||
val ind: Int = (left?.ind ?: cur) + 1
|
||||
}
|
||||
return if (Node(5).ind == 6) "OK" else "Fail"
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
// TARGET_BACKEND: JVM
|
||||
// IGNORE_BACKEND: JVM
|
||||
// WITH_RUNTIME
|
||||
|
||||
fun box(): String = use {
|
||||
class Local(val n: Int)
|
||||
if (Local::class.java.declaringClass == null) "OK" else "Fail"
|
||||
}
|
||||
|
||||
inline fun <T> use(block: () -> T): T = block()
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
// WITH_RUNTIME
|
||||
// IGNORE_BACKEND: WASM
|
||||
// WASM_MUTE_REASON: STDLIB_TEXT
|
||||
|
||||
fun test(text: String): String {
|
||||
when (text.takeWhile { it.isLetter() }) {
|
||||
in arrayOf("a") -> return "OK"
|
||||
}
|
||||
return "FAIL"
|
||||
}
|
||||
|
||||
fun box(): String = test("a")
|
||||
@@ -0,0 +1,14 @@
|
||||
// TARGET_BACKEND: JVM
|
||||
// WITH_RUNTIME
|
||||
// FULL_JDK
|
||||
// FILE: 1.kt
|
||||
|
||||
inline fun foo(crossinline init: (String) -> String): String =
|
||||
listOf("OK").stream().map { init(it) }.findFirst().get()
|
||||
|
||||
inline fun bar(crossinline init: (String) -> String): String =
|
||||
foo { foo(init) }
|
||||
|
||||
// FILE: 2.kt
|
||||
|
||||
fun box(): String = bar { it }
|
||||
@@ -0,0 +1,16 @@
|
||||
// IGNORE_BACKEND: JVM
|
||||
// IGNORE_BACKEND_MULTI_MODULE: JVM, JVM_MULTI_MODULE_OLD_AGAINST_IR
|
||||
// IGNORE_BACKEND_FIR: JVM_IR
|
||||
// NO_CHECK_LAMBDA_INLINING
|
||||
// FILE: 1.kt
|
||||
|
||||
inline fun foo(f: () -> Unit) {
|
||||
f()
|
||||
}
|
||||
|
||||
// FILE: 2.kt
|
||||
|
||||
fun box(): String = (bar@ l@ fun(): String {
|
||||
foo { return@bar "OK" }
|
||||
return "fail"
|
||||
}) ()
|
||||
@@ -0,0 +1,28 @@
|
||||
// IGNORE_BACKEND: JVM
|
||||
// IGNORE_BACKEND_MULTI_MODULE: JVM, JVM_MULTI_MODULE_OLD_AGAINST_IR
|
||||
// NO_CHECK_LAMBDA_INLINING
|
||||
// FILE: 1.kt
|
||||
|
||||
package test
|
||||
|
||||
class M(size: Int) {
|
||||
val m = IntArray(size) { 0 }
|
||||
}
|
||||
|
||||
inline operator fun M.get(a: Any, b: Any, ifn: () -> Int) =
|
||||
m[ifn()]
|
||||
|
||||
inline operator fun <reified T> M.set(a: T, b: Any, ifn: () -> Int, v: Int) {
|
||||
if (b !is T) throw AssertionError()
|
||||
m[ifn()] = v
|
||||
}
|
||||
|
||||
// FILE: 2.kt
|
||||
|
||||
import test.*
|
||||
|
||||
fun box(): String {
|
||||
val m = M(4)
|
||||
m["a", "b", { 1 }] += 10
|
||||
return if (m.m[1] == 10) "OK" else "Fail"
|
||||
}
|
||||
+102
@@ -840,6 +840,12 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
|
||||
runTest("compiler/testData/codegen/box/arrays/kt33.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt34291_16dimensions.kt")
|
||||
public void testKt34291_16dimensions() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/arrays/kt34291_16dimensions.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt3771.kt")
|
||||
public void testKt3771() throws Exception {
|
||||
@@ -6161,6 +6167,12 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
|
||||
@TestMetadata("compiler/testData/codegen/box/compileKotlinAgainstKotlin")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class CompileKotlinAgainstKotlin {
|
||||
@Test
|
||||
@TestMetadata("adaptedSuspendFunctionReference.kt")
|
||||
public void testAdaptedSuspendFunctionReference() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/adaptedSuspendFunctionReference.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testAllFilesPresentInCompileKotlinAgainstKotlin() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/compileKotlinAgainstKotlin"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
|
||||
@@ -6653,6 +6665,12 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
|
||||
runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/inlineClasses/defaultWithInlineClassAndReceivers.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("funInterface.kt")
|
||||
public void testFunInterface() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/inlineClasses/funInterface.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("inlineClassFakeOverrideMangling.kt")
|
||||
public void testInlineClassFakeOverrideMangling() throws Exception {
|
||||
@@ -9024,6 +9042,12 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
|
||||
runTest("compiler/testData/codegen/box/coroutines/kt15930.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt21080.kt")
|
||||
public void testKt21080() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/coroutines/kt21080.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt21605.kt")
|
||||
public void testKt21605() throws Exception {
|
||||
@@ -9066,6 +9090,12 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
|
||||
runTest("compiler/testData/codegen/box/coroutines/kt35967.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt38099.kt")
|
||||
public void testKt38099() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/coroutines/kt38099.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt42028.kt")
|
||||
public void testKt42028() throws Exception {
|
||||
@@ -9090,6 +9120,12 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
|
||||
runTest("compiler/testData/codegen/box/coroutines/kt44710.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt44781.kt")
|
||||
public void testKt44781() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/coroutines/kt44781.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt45377.kt")
|
||||
public void testKt45377() throws Exception {
|
||||
@@ -9830,6 +9866,12 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
|
||||
@TestMetadata("compiler/testData/codegen/box/coroutines/featureIntersection/callableReference/function")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class Function {
|
||||
@Test
|
||||
@TestMetadata("adapted.kt")
|
||||
public void testAdapted() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/coroutines/featureIntersection/callableReference/function/adapted.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testAllFilesPresentInFunction() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/featureIntersection/callableReference/function"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
|
||||
@@ -13466,6 +13508,12 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
|
||||
runTest("compiler/testData/codegen/box/delegation/inDataClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt30102_comparable.kt")
|
||||
public void testKt30102_comparable() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/delegation/kt30102_comparable.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt8154.kt")
|
||||
public void testKt8154() throws Exception {
|
||||
@@ -13798,6 +13846,18 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
|
||||
runTest("compiler/testData/codegen/box/diagnostics/functions/tailRecursion/realStringRepeat.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("recursiveCallInInlineLambda.kt")
|
||||
public void testRecursiveCallInInlineLambda() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/diagnostics/functions/tailRecursion/recursiveCallInInlineLambda.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("recursiveCallInInlineLambdaWithCapture.kt")
|
||||
public void testRecursiveCallInInlineLambdaWithCapture() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/diagnostics/functions/tailRecursion/recursiveCallInInlineLambdaWithCapture.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("recursiveCallInLambda.kt")
|
||||
public void testRecursiveCallInLambda() throws Exception {
|
||||
@@ -15488,6 +15548,12 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
|
||||
runTest("compiler/testData/codegen/box/funInterface/kt44827_funInterface.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt45444_privateFunInterface.kt")
|
||||
public void testKt45444_privateFunInterface() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/funInterface/kt45444_privateFunInterface.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("multimodule.kt")
|
||||
public void testMultimodule() throws Exception {
|
||||
@@ -17978,6 +18044,12 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/kt28920_javaPrimitiveType.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt31994.kt")
|
||||
public void testKt31994() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/kt31994.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt32793.kt")
|
||||
public void testKt32793() throws Exception {
|
||||
@@ -18032,12 +18104,24 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/kt44141.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt44701_jvmOverloads.kt")
|
||||
public void testKt44701_jvmOverloads() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/kt44701_jvmOverloads.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt44867.kt")
|
||||
public void testKt44867() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/kt44867.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt44978.kt")
|
||||
public void testKt44978() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/kt44978.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt45991.kt")
|
||||
public void testKt45991() throws Exception {
|
||||
@@ -24348,6 +24432,12 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
|
||||
runTest("compiler/testData/codegen/box/localClasses/kt4174.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt45383.kt")
|
||||
public void testKt45383() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/localClasses/kt45383.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("localClass.kt")
|
||||
public void testLocalClass() throws Exception {
|
||||
@@ -34633,6 +34723,12 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
|
||||
runTest("compiler/testData/codegen/box/reflection/enclosing/kt11969.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt45907.kt")
|
||||
public void testKt45907() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/reflection/enclosing/kt45907.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt6368.kt")
|
||||
public void testKt6368() throws Exception {
|
||||
@@ -41282,6 +41378,12 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
|
||||
runTest("compiler/testData/codegen/box/when/kt43242.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt45081.kt")
|
||||
public void testKt45081() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/when/kt45081.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt5307.kt")
|
||||
public void testKt5307() throws Exception {
|
||||
|
||||
+18
@@ -298,6 +298,12 @@ public class BlackBoxInlineCodegenTestGenerated extends AbstractBlackBoxInlineCo
|
||||
runTest("compiler/testData/codegen/boxInline/anonymousObject/kt38197.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt41174.kt")
|
||||
public void testKt41174() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/anonymousObject/kt41174.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt42815.kt")
|
||||
public void testKt42815() throws Exception {
|
||||
@@ -2902,6 +2908,12 @@ public class BlackBoxInlineCodegenTestGenerated extends AbstractBlackBoxInlineCo
|
||||
runTest("compiler/testData/codegen/boxInline/nonLocalReturns/kt8948v2.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt9304.kt")
|
||||
public void testKt9304() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/nonLocalReturns/kt9304.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("nestedNonLocals.kt")
|
||||
public void testNestedNonLocals() throws Exception {
|
||||
@@ -3660,6 +3672,12 @@ public class BlackBoxInlineCodegenTestGenerated extends AbstractBlackBoxInlineCo
|
||||
runTest("compiler/testData/codegen/boxInline/reified/kt18977.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt28234.kt")
|
||||
public void testKt28234() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/reified/kt28234.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt35511.kt")
|
||||
public void testKt35511() throws Exception {
|
||||
|
||||
+18
@@ -298,6 +298,12 @@ public class CompileKotlinAgainstInlineKotlinTestGenerated extends AbstractCompi
|
||||
runTest("compiler/testData/codegen/boxInline/anonymousObject/kt38197.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt41174.kt")
|
||||
public void testKt41174() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/anonymousObject/kt41174.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt42815.kt")
|
||||
public void testKt42815() throws Exception {
|
||||
@@ -2902,6 +2908,12 @@ public class CompileKotlinAgainstInlineKotlinTestGenerated extends AbstractCompi
|
||||
runTest("compiler/testData/codegen/boxInline/nonLocalReturns/kt8948v2.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt9304.kt")
|
||||
public void testKt9304() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/nonLocalReturns/kt9304.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("nestedNonLocals.kt")
|
||||
public void testNestedNonLocals() throws Exception {
|
||||
@@ -3660,6 +3672,12 @@ public class CompileKotlinAgainstInlineKotlinTestGenerated extends AbstractCompi
|
||||
runTest("compiler/testData/codegen/boxInline/reified/kt18977.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt28234.kt")
|
||||
public void testKt28234() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/reified/kt28234.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt35511.kt")
|
||||
public void testKt35511() throws Exception {
|
||||
|
||||
+102
@@ -840,6 +840,12 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes
|
||||
runTest("compiler/testData/codegen/box/arrays/kt33.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt34291_16dimensions.kt")
|
||||
public void testKt34291_16dimensions() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/arrays/kt34291_16dimensions.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt3771.kt")
|
||||
public void testKt3771() throws Exception {
|
||||
@@ -6161,6 +6167,12 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes
|
||||
@TestMetadata("compiler/testData/codegen/box/compileKotlinAgainstKotlin")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class CompileKotlinAgainstKotlin {
|
||||
@Test
|
||||
@TestMetadata("adaptedSuspendFunctionReference.kt")
|
||||
public void testAdaptedSuspendFunctionReference() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/adaptedSuspendFunctionReference.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testAllFilesPresentInCompileKotlinAgainstKotlin() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/compileKotlinAgainstKotlin"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||
@@ -6653,6 +6665,12 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes
|
||||
runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/inlineClasses/defaultWithInlineClassAndReceivers.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("funInterface.kt")
|
||||
public void testFunInterface() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/inlineClasses/funInterface.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("inlineClassFakeOverrideMangling.kt")
|
||||
public void testInlineClassFakeOverrideMangling() throws Exception {
|
||||
@@ -9024,6 +9042,12 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes
|
||||
runTest("compiler/testData/codegen/box/coroutines/kt15930.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt21080.kt")
|
||||
public void testKt21080() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/coroutines/kt21080.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt21605.kt")
|
||||
public void testKt21605() throws Exception {
|
||||
@@ -9066,6 +9090,12 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes
|
||||
runTest("compiler/testData/codegen/box/coroutines/kt35967.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt38099.kt")
|
||||
public void testKt38099() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/coroutines/kt38099.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt42028.kt")
|
||||
public void testKt42028() throws Exception {
|
||||
@@ -9090,6 +9120,12 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes
|
||||
runTest("compiler/testData/codegen/box/coroutines/kt44710.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt44781.kt")
|
||||
public void testKt44781() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/coroutines/kt44781.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt45377.kt")
|
||||
public void testKt45377() throws Exception {
|
||||
@@ -9830,6 +9866,12 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes
|
||||
@TestMetadata("compiler/testData/codegen/box/coroutines/featureIntersection/callableReference/function")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class Function {
|
||||
@Test
|
||||
@TestMetadata("adapted.kt")
|
||||
public void testAdapted() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/coroutines/featureIntersection/callableReference/function/adapted.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testAllFilesPresentInFunction() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/featureIntersection/callableReference/function"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||
@@ -13466,6 +13508,12 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes
|
||||
runTest("compiler/testData/codegen/box/delegation/inDataClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt30102_comparable.kt")
|
||||
public void testKt30102_comparable() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/delegation/kt30102_comparable.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt8154.kt")
|
||||
public void testKt8154() throws Exception {
|
||||
@@ -13798,6 +13846,18 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes
|
||||
runTest("compiler/testData/codegen/box/diagnostics/functions/tailRecursion/realStringRepeat.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("recursiveCallInInlineLambda.kt")
|
||||
public void testRecursiveCallInInlineLambda() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/diagnostics/functions/tailRecursion/recursiveCallInInlineLambda.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("recursiveCallInInlineLambdaWithCapture.kt")
|
||||
public void testRecursiveCallInInlineLambdaWithCapture() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/diagnostics/functions/tailRecursion/recursiveCallInInlineLambdaWithCapture.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("recursiveCallInLambda.kt")
|
||||
public void testRecursiveCallInLambda() throws Exception {
|
||||
@@ -15512,6 +15572,12 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes
|
||||
runTest("compiler/testData/codegen/box/funInterface/kt44827_funInterface.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt45444_privateFunInterface.kt")
|
||||
public void testKt45444_privateFunInterface() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/funInterface/kt45444_privateFunInterface.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("multimodule.kt")
|
||||
public void testMultimodule() throws Exception {
|
||||
@@ -18002,6 +18068,12 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/kt28920_javaPrimitiveType.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt31994.kt")
|
||||
public void testKt31994() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/kt31994.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt32793.kt")
|
||||
public void testKt32793() throws Exception {
|
||||
@@ -18056,12 +18128,24 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/kt44141.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt44701_jvmOverloads.kt")
|
||||
public void testKt44701_jvmOverloads() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/kt44701_jvmOverloads.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt44867.kt")
|
||||
public void testKt44867() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/kt44867.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt44978.kt")
|
||||
public void testKt44978() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/kt44978.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt45991.kt")
|
||||
public void testKt45991() throws Exception {
|
||||
@@ -24372,6 +24456,12 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes
|
||||
runTest("compiler/testData/codegen/box/localClasses/kt4174.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt45383.kt")
|
||||
public void testKt45383() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/localClasses/kt45383.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("localClass.kt")
|
||||
public void testLocalClass() throws Exception {
|
||||
@@ -34657,6 +34747,12 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes
|
||||
runTest("compiler/testData/codegen/box/reflection/enclosing/kt11969.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt45907.kt")
|
||||
public void testKt45907() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/reflection/enclosing/kt45907.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt6368.kt")
|
||||
public void testKt6368() throws Exception {
|
||||
@@ -41306,6 +41402,12 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes
|
||||
runTest("compiler/testData/codegen/box/when/kt43242.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt45081.kt")
|
||||
public void testKt45081() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/when/kt45081.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt5307.kt")
|
||||
public void testKt5307() throws Exception {
|
||||
|
||||
+18
@@ -298,6 +298,12 @@ public class IrBlackBoxInlineCodegenTestGenerated extends AbstractIrBlackBoxInli
|
||||
runTest("compiler/testData/codegen/boxInline/anonymousObject/kt38197.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt41174.kt")
|
||||
public void testKt41174() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/anonymousObject/kt41174.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt42815.kt")
|
||||
public void testKt42815() throws Exception {
|
||||
@@ -2902,6 +2908,12 @@ public class IrBlackBoxInlineCodegenTestGenerated extends AbstractIrBlackBoxInli
|
||||
runTest("compiler/testData/codegen/boxInline/nonLocalReturns/kt8948v2.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt9304.kt")
|
||||
public void testKt9304() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/nonLocalReturns/kt9304.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("nestedNonLocals.kt")
|
||||
public void testNestedNonLocals() throws Exception {
|
||||
@@ -3660,6 +3672,12 @@ public class IrBlackBoxInlineCodegenTestGenerated extends AbstractIrBlackBoxInli
|
||||
runTest("compiler/testData/codegen/boxInline/reified/kt18977.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt28234.kt")
|
||||
public void testKt28234() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/reified/kt28234.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt35511.kt")
|
||||
public void testKt35511() throws Exception {
|
||||
|
||||
+18
@@ -298,6 +298,12 @@ public class IrCompileKotlinAgainstInlineKotlinTestGenerated extends AbstractIrC
|
||||
runTest("compiler/testData/codegen/boxInline/anonymousObject/kt38197.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt41174.kt")
|
||||
public void testKt41174() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/anonymousObject/kt41174.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt42815.kt")
|
||||
public void testKt42815() throws Exception {
|
||||
@@ -2902,6 +2908,12 @@ public class IrCompileKotlinAgainstInlineKotlinTestGenerated extends AbstractIrC
|
||||
runTest("compiler/testData/codegen/boxInline/nonLocalReturns/kt8948v2.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt9304.kt")
|
||||
public void testKt9304() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/nonLocalReturns/kt9304.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("nestedNonLocals.kt")
|
||||
public void testNestedNonLocals() throws Exception {
|
||||
@@ -3660,6 +3672,12 @@ public class IrCompileKotlinAgainstInlineKotlinTestGenerated extends AbstractIrC
|
||||
runTest("compiler/testData/codegen/boxInline/reified/kt18977.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt28234.kt")
|
||||
public void testKt28234() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/reified/kt28234.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt35511.kt")
|
||||
public void testKt35511() throws Exception {
|
||||
|
||||
+18
@@ -298,6 +298,12 @@ public class JvmIrAgainstOldBoxInlineTestGenerated extends AbstractJvmIrAgainstO
|
||||
runTest("compiler/testData/codegen/boxInline/anonymousObject/kt38197.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt41174.kt")
|
||||
public void testKt41174() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/anonymousObject/kt41174.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt42815.kt")
|
||||
public void testKt42815() throws Exception {
|
||||
@@ -2902,6 +2908,12 @@ public class JvmIrAgainstOldBoxInlineTestGenerated extends AbstractJvmIrAgainstO
|
||||
runTest("compiler/testData/codegen/boxInline/nonLocalReturns/kt8948v2.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt9304.kt")
|
||||
public void testKt9304() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/nonLocalReturns/kt9304.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("nestedNonLocals.kt")
|
||||
public void testNestedNonLocals() throws Exception {
|
||||
@@ -3660,6 +3672,12 @@ public class JvmIrAgainstOldBoxInlineTestGenerated extends AbstractJvmIrAgainstO
|
||||
runTest("compiler/testData/codegen/boxInline/reified/kt18977.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt28234.kt")
|
||||
public void testKt28234() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/reified/kt28234.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt35511.kt")
|
||||
public void testKt35511() throws Exception {
|
||||
|
||||
+12
@@ -20,6 +20,12 @@ import java.util.regex.Pattern;
|
||||
@TestMetadata("compiler/testData/codegen/box/compileKotlinAgainstKotlin")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class JvmIrAgainstOldBoxTestGenerated extends AbstractJvmIrAgainstOldBoxTest {
|
||||
@Test
|
||||
@TestMetadata("adaptedSuspendFunctionReference.kt")
|
||||
public void testAdaptedSuspendFunctionReference() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/adaptedSuspendFunctionReference.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testAllFilesPresentInCompileKotlinAgainstKotlin() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/compileKotlinAgainstKotlin"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, true);
|
||||
@@ -512,6 +518,12 @@ public class JvmIrAgainstOldBoxTestGenerated extends AbstractJvmIrAgainstOldBoxT
|
||||
runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/inlineClasses/defaultWithInlineClassAndReceivers.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("funInterface.kt")
|
||||
public void testFunInterface() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/inlineClasses/funInterface.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("inlineClassFakeOverrideMangling.kt")
|
||||
public void testInlineClassFakeOverrideMangling() throws Exception {
|
||||
|
||||
+18
@@ -298,6 +298,12 @@ public class JvmOldAgainstIrBoxInlineTestGenerated extends AbstractJvmOldAgainst
|
||||
runTest("compiler/testData/codegen/boxInline/anonymousObject/kt38197.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt41174.kt")
|
||||
public void testKt41174() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/anonymousObject/kt41174.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt42815.kt")
|
||||
public void testKt42815() throws Exception {
|
||||
@@ -2902,6 +2908,12 @@ public class JvmOldAgainstIrBoxInlineTestGenerated extends AbstractJvmOldAgainst
|
||||
runTest("compiler/testData/codegen/boxInline/nonLocalReturns/kt8948v2.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt9304.kt")
|
||||
public void testKt9304() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/nonLocalReturns/kt9304.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("nestedNonLocals.kt")
|
||||
public void testNestedNonLocals() throws Exception {
|
||||
@@ -3660,6 +3672,12 @@ public class JvmOldAgainstIrBoxInlineTestGenerated extends AbstractJvmOldAgainst
|
||||
runTest("compiler/testData/codegen/boxInline/reified/kt18977.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt28234.kt")
|
||||
public void testKt28234() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/reified/kt28234.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt35511.kt")
|
||||
public void testKt35511() throws Exception {
|
||||
|
||||
+12
@@ -20,6 +20,12 @@ import java.util.regex.Pattern;
|
||||
@TestMetadata("compiler/testData/codegen/box/compileKotlinAgainstKotlin")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class JvmOldAgainstIrBoxTestGenerated extends AbstractJvmOldAgainstIrBoxTest {
|
||||
@Test
|
||||
@TestMetadata("adaptedSuspendFunctionReference.kt")
|
||||
public void testAdaptedSuspendFunctionReference() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/adaptedSuspendFunctionReference.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testAllFilesPresentInCompileKotlinAgainstKotlin() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/compileKotlinAgainstKotlin"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, true);
|
||||
@@ -512,6 +518,12 @@ public class JvmOldAgainstIrBoxTestGenerated extends AbstractJvmOldAgainstIrBoxT
|
||||
runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/inlineClasses/defaultWithInlineClassAndReceivers.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("funInterface.kt")
|
||||
public void testFunInterface() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/inlineClasses/funInterface.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("inlineClassFakeOverrideMangling.kt")
|
||||
public void testInlineClassFakeOverrideMangling() throws Exception {
|
||||
|
||||
+75
@@ -737,6 +737,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
|
||||
runTest("compiler/testData/codegen/box/arrays/kt33.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt34291_16dimensions.kt")
|
||||
public void testKt34291_16dimensions() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/arrays/kt34291_16dimensions.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt3771.kt")
|
||||
public void testKt3771() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/arrays/kt3771.kt");
|
||||
@@ -6766,11 +6771,21 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Coroutines extends AbstractLightAnalysisModeTest {
|
||||
@TestMetadata("kt21080.kt")
|
||||
public void ignoreKt21080() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/coroutines/kt21080.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt24135.kt")
|
||||
public void ignoreKt24135() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/coroutines/kt24135.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt38099.kt")
|
||||
public void ignoreKt38099() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/coroutines/kt38099.kt");
|
||||
}
|
||||
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
|
||||
}
|
||||
@@ -7099,6 +7114,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
|
||||
runTest("compiler/testData/codegen/box/coroutines/kt44710.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt44781.kt")
|
||||
public void testKt44781() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/coroutines/kt44781.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt45377.kt")
|
||||
public void testKt45377() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/coroutines/kt45377.kt");
|
||||
@@ -7744,6 +7764,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Function extends AbstractLightAnalysisModeTest {
|
||||
@TestMetadata("adapted.kt")
|
||||
public void ignoreAdapted() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/coroutines/featureIntersection/callableReference/function/adapted.kt");
|
||||
}
|
||||
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
|
||||
}
|
||||
@@ -10906,6 +10931,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Delegation extends AbstractLightAnalysisModeTest {
|
||||
@TestMetadata("kt30102_comparable.kt")
|
||||
public void ignoreKt30102_comparable() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/delegation/kt30102_comparable.kt");
|
||||
}
|
||||
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
|
||||
}
|
||||
@@ -11185,6 +11215,16 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class TailRecursion extends AbstractLightAnalysisModeTest {
|
||||
@TestMetadata("recursiveCallInInlineLambda.kt")
|
||||
public void ignoreRecursiveCallInInlineLambda() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/diagnostics/functions/tailRecursion/recursiveCallInInlineLambda.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("recursiveCallInInlineLambdaWithCapture.kt")
|
||||
public void ignoreRecursiveCallInInlineLambdaWithCapture() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/diagnostics/functions/tailRecursion/recursiveCallInInlineLambdaWithCapture.kt");
|
||||
}
|
||||
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
|
||||
}
|
||||
@@ -12693,6 +12733,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class FunInterface extends AbstractLightAnalysisModeTest {
|
||||
@TestMetadata("kt45444_privateFunInterface.kt")
|
||||
public void ignoreKt45444_privateFunInterface() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/funInterface/kt45444_privateFunInterface.kt");
|
||||
}
|
||||
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
|
||||
}
|
||||
@@ -14314,16 +14359,31 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/inlineClassWithCustomEquals.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt31994.kt")
|
||||
public void ignoreKt31994() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/kt31994.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt32793.kt")
|
||||
public void ignoreKt32793() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/kt32793.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt44701_jvmOverloads.kt")
|
||||
public void ignoreKt44701_jvmOverloads() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/kt44701_jvmOverloads.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt44867.kt")
|
||||
public void ignoreKt44867() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/kt44867.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt44978.kt")
|
||||
public void ignoreKt44978() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/kt44978.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt45991.kt")
|
||||
public void ignoreKt45991() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/kt45991.kt");
|
||||
@@ -20468,6 +20528,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
|
||||
runTest("compiler/testData/codegen/box/localClasses/kt10835a.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt45383.kt")
|
||||
public void ignoreKt45383() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/localClasses/kt45383.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("subclassingExtensionReceiverClass.kt")
|
||||
public void ignoreSubclassingExtensionReceiverClass() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/localClasses/subclassingExtensionReceiverClass.kt");
|
||||
@@ -27330,6 +27395,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Enclosing extends AbstractLightAnalysisModeTest {
|
||||
@TestMetadata("kt45907.kt")
|
||||
public void ignoreKt45907() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/reflection/enclosing/kt45907.kt");
|
||||
}
|
||||
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
|
||||
}
|
||||
@@ -33221,6 +33291,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
|
||||
runTest("compiler/testData/codegen/box/when/kt43242.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt45081.kt")
|
||||
public void testKt45081() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/when/kt45081.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt5307.kt")
|
||||
public void testKt5307() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/when/kt5307.kt");
|
||||
|
||||
js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/es6/semantics/IrJsCodegenBoxES6TestGenerated.java
Generated
+70
@@ -417,6 +417,11 @@ public class IrJsCodegenBoxES6TestGenerated extends AbstractIrJsCodegenBoxES6Tes
|
||||
runTest("compiler/testData/codegen/box/arrays/kt33.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt34291_16dimensions.kt")
|
||||
public void testKt34291_16dimensions() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/arrays/kt34291_16dimensions.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt3771.kt")
|
||||
public void testKt3771() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/arrays/kt3771.kt");
|
||||
@@ -4206,6 +4211,11 @@ public class IrJsCodegenBoxES6TestGenerated extends AbstractIrJsCodegenBoxES6Tes
|
||||
KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath);
|
||||
}
|
||||
|
||||
@TestMetadata("adaptedSuspendFunctionReference.kt")
|
||||
public void testAdaptedSuspendFunctionReference() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/adaptedSuspendFunctionReference.kt");
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInCompileKotlinAgainstKotlin() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/compileKotlinAgainstKotlin"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true);
|
||||
}
|
||||
@@ -4430,6 +4440,11 @@ public class IrJsCodegenBoxES6TestGenerated extends AbstractIrJsCodegenBoxES6Tes
|
||||
runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/inlineClasses/defaultWithInlineClassAndReceivers.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("funInterface.kt")
|
||||
public void testFunInterface() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/inlineClasses/funInterface.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("inlineClassFakeOverrideMangling.kt")
|
||||
public void testInlineClassFakeOverrideMangling() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/inlineClasses/inlineClassFakeOverrideMangling.kt");
|
||||
@@ -6288,6 +6303,11 @@ public class IrJsCodegenBoxES6TestGenerated extends AbstractIrJsCodegenBoxES6Tes
|
||||
runTest("compiler/testData/codegen/box/coroutines/kt15930.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt21080.kt")
|
||||
public void testKt21080() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/coroutines/kt21080.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt21605.kt")
|
||||
public void testKt21605() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/coroutines/kt21605.kt");
|
||||
@@ -6343,6 +6363,11 @@ public class IrJsCodegenBoxES6TestGenerated extends AbstractIrJsCodegenBoxES6Tes
|
||||
runTest("compiler/testData/codegen/box/coroutines/kt44710.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt44781.kt")
|
||||
public void testKt44781() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/coroutines/kt44781.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt45377.kt")
|
||||
public void testKt45377() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/coroutines/kt45377.kt");
|
||||
@@ -6922,6 +6947,11 @@ public class IrJsCodegenBoxES6TestGenerated extends AbstractIrJsCodegenBoxES6Tes
|
||||
KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath);
|
||||
}
|
||||
|
||||
@TestMetadata("adapted.kt")
|
||||
public void testAdapted() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/coroutines/featureIntersection/callableReference/function/adapted.kt");
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInFunction() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/featureIntersection/callableReference/function"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true);
|
||||
}
|
||||
@@ -9803,6 +9833,11 @@ public class IrJsCodegenBoxES6TestGenerated extends AbstractIrJsCodegenBoxES6Tes
|
||||
runTest("compiler/testData/codegen/box/delegation/inDataClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt30102_comparable.kt")
|
||||
public void testKt30102_comparable() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/delegation/kt30102_comparable.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt8154.kt")
|
||||
public void testKt8154() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/delegation/kt8154.kt");
|
||||
@@ -10092,6 +10127,16 @@ public class IrJsCodegenBoxES6TestGenerated extends AbstractIrJsCodegenBoxES6Tes
|
||||
runTest("compiler/testData/codegen/box/diagnostics/functions/tailRecursion/realStringRepeat.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("recursiveCallInInlineLambda.kt")
|
||||
public void testRecursiveCallInInlineLambda() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/diagnostics/functions/tailRecursion/recursiveCallInInlineLambda.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("recursiveCallInInlineLambdaWithCapture.kt")
|
||||
public void testRecursiveCallInInlineLambdaWithCapture() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/diagnostics/functions/tailRecursion/recursiveCallInInlineLambdaWithCapture.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("recursiveCallInLambda.kt")
|
||||
public void testRecursiveCallInLambda() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/diagnostics/functions/tailRecursion/recursiveCallInLambda.kt");
|
||||
@@ -11275,6 +11320,11 @@ public class IrJsCodegenBoxES6TestGenerated extends AbstractIrJsCodegenBoxES6Tes
|
||||
runTest("compiler/testData/codegen/box/funInterface/irrelevantPrivateDeclarations.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt45444_privateFunInterface.kt")
|
||||
public void testKt45444_privateFunInterface() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/funInterface/kt45444_privateFunInterface.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("multimodule.kt")
|
||||
public void testMultimodule() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/funInterface/multimodule.kt");
|
||||
@@ -13086,6 +13136,11 @@ public class IrJsCodegenBoxES6TestGenerated extends AbstractIrJsCodegenBoxES6Tes
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/kt28585.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt31994.kt")
|
||||
public void testKt31994() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/kt31994.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt32793.kt")
|
||||
public void testKt32793() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/kt32793.kt");
|
||||
@@ -13136,6 +13191,11 @@ public class IrJsCodegenBoxES6TestGenerated extends AbstractIrJsCodegenBoxES6Tes
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/kt44867.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt44978.kt")
|
||||
public void testKt44978() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/kt44978.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt45991.kt")
|
||||
public void testKt45991() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/kt45991.kt");
|
||||
@@ -16090,6 +16150,11 @@ public class IrJsCodegenBoxES6TestGenerated extends AbstractIrJsCodegenBoxES6Tes
|
||||
runTest("compiler/testData/codegen/box/localClasses/kt4174.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt45383.kt")
|
||||
public void testKt45383() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/localClasses/kt45383.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("localClass.kt")
|
||||
public void testLocalClass() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/localClasses/localClass.kt");
|
||||
@@ -27881,6 +27946,11 @@ public class IrJsCodegenBoxES6TestGenerated extends AbstractIrJsCodegenBoxES6Tes
|
||||
runTest("compiler/testData/codegen/box/when/kt2466.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt45081.kt")
|
||||
public void testKt45081() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/when/kt45081.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt5307.kt")
|
||||
public void testKt5307() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/when/kt5307.kt");
|
||||
|
||||
+10
@@ -2342,6 +2342,11 @@ public class IrJsCodegenInlineES6TestGenerated extends AbstractIrJsCodegenInline
|
||||
runTest("compiler/testData/codegen/boxInline/nonLocalReturns/kt8948v2.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt9304.kt")
|
||||
public void testKt9304() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/nonLocalReturns/kt9304.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("nestedNonLocals.kt")
|
||||
public void testNestedNonLocals() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/nonLocalReturns/nestedNonLocals.kt");
|
||||
@@ -2995,6 +3000,11 @@ public class IrJsCodegenInlineES6TestGenerated extends AbstractIrJsCodegenInline
|
||||
runTest("compiler/testData/codegen/boxInline/reified/kt18977.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt28234.kt")
|
||||
public void testKt28234() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/reified/kt28234.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt35511.kt")
|
||||
public void testKt35511() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/reified/kt35511.kt");
|
||||
|
||||
Generated
+60
@@ -417,6 +417,11 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
|
||||
runTest("compiler/testData/codegen/box/arrays/kt33.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt34291_16dimensions.kt")
|
||||
public void testKt34291_16dimensions() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/arrays/kt34291_16dimensions.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt3771.kt")
|
||||
public void testKt3771() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/arrays/kt3771.kt");
|
||||
@@ -5709,6 +5714,11 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
|
||||
runTest("compiler/testData/codegen/box/coroutines/kt15930.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt21080.kt")
|
||||
public void testKt21080() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/coroutines/kt21080.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt21605.kt")
|
||||
public void testKt21605() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/coroutines/kt21605.kt");
|
||||
@@ -5764,6 +5774,11 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
|
||||
runTest("compiler/testData/codegen/box/coroutines/kt44710.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt44781.kt")
|
||||
public void testKt44781() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/coroutines/kt44781.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt45377.kt")
|
||||
public void testKt45377() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/coroutines/kt45377.kt");
|
||||
@@ -6343,6 +6358,11 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
|
||||
KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR, testDataFilePath);
|
||||
}
|
||||
|
||||
@TestMetadata("adapted.kt")
|
||||
public void testAdapted() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/coroutines/featureIntersection/callableReference/function/adapted.kt");
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInFunction() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/featureIntersection/callableReference/function"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true);
|
||||
}
|
||||
@@ -9224,6 +9244,11 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
|
||||
runTest("compiler/testData/codegen/box/delegation/inDataClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt30102_comparable.kt")
|
||||
public void testKt30102_comparable() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/delegation/kt30102_comparable.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt8154.kt")
|
||||
public void testKt8154() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/delegation/kt8154.kt");
|
||||
@@ -9513,6 +9538,16 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
|
||||
runTest("compiler/testData/codegen/box/diagnostics/functions/tailRecursion/realStringRepeat.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("recursiveCallInInlineLambda.kt")
|
||||
public void testRecursiveCallInInlineLambda() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/diagnostics/functions/tailRecursion/recursiveCallInInlineLambda.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("recursiveCallInInlineLambdaWithCapture.kt")
|
||||
public void testRecursiveCallInInlineLambdaWithCapture() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/diagnostics/functions/tailRecursion/recursiveCallInInlineLambdaWithCapture.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("recursiveCallInLambda.kt")
|
||||
public void testRecursiveCallInLambda() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/diagnostics/functions/tailRecursion/recursiveCallInLambda.kt");
|
||||
@@ -10696,6 +10731,11 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
|
||||
runTest("compiler/testData/codegen/box/funInterface/irrelevantPrivateDeclarations.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt45444_privateFunInterface.kt")
|
||||
public void testKt45444_privateFunInterface() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/funInterface/kt45444_privateFunInterface.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("multimodule.kt")
|
||||
public void testMultimodule() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/funInterface/multimodule.kt");
|
||||
@@ -12507,6 +12547,11 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/kt28585.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt31994.kt")
|
||||
public void testKt31994() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/kt31994.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt32793.kt")
|
||||
public void testKt32793() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/kt32793.kt");
|
||||
@@ -12557,6 +12602,11 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/kt44867.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt44978.kt")
|
||||
public void testKt44978() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/kt44978.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt45991.kt")
|
||||
public void testKt45991() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/kt45991.kt");
|
||||
@@ -15511,6 +15561,11 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
|
||||
runTest("compiler/testData/codegen/box/localClasses/kt4174.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt45383.kt")
|
||||
public void testKt45383() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/localClasses/kt45383.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("localClass.kt")
|
||||
public void testLocalClass() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/localClasses/localClass.kt");
|
||||
@@ -27302,6 +27357,11 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
|
||||
runTest("compiler/testData/codegen/box/when/kt2466.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt45081.kt")
|
||||
public void testKt45081() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/when/kt45081.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt5307.kt")
|
||||
public void testKt5307() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/when/kt5307.kt");
|
||||
|
||||
Generated
+10
@@ -2342,6 +2342,11 @@ public class IrJsCodegenInlineTestGenerated extends AbstractIrJsCodegenInlineTes
|
||||
runTest("compiler/testData/codegen/boxInline/nonLocalReturns/kt8948v2.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt9304.kt")
|
||||
public void testKt9304() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/nonLocalReturns/kt9304.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("nestedNonLocals.kt")
|
||||
public void testNestedNonLocals() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/nonLocalReturns/nestedNonLocals.kt");
|
||||
@@ -2995,6 +3000,11 @@ public class IrJsCodegenInlineTestGenerated extends AbstractIrJsCodegenInlineTes
|
||||
runTest("compiler/testData/codegen/boxInline/reified/kt18977.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt28234.kt")
|
||||
public void testKt28234() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/reified/kt28234.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt35511.kt")
|
||||
public void testKt35511() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/reified/kt35511.kt");
|
||||
|
||||
Generated
+60
@@ -417,6 +417,11 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
|
||||
runTest("compiler/testData/codegen/box/arrays/kt33.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt34291_16dimensions.kt")
|
||||
public void testKt34291_16dimensions() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/arrays/kt34291_16dimensions.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt3771.kt")
|
||||
public void testKt3771() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/arrays/kt3771.kt");
|
||||
@@ -5709,6 +5714,11 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
|
||||
runTest("compiler/testData/codegen/box/coroutines/kt15930.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt21080.kt")
|
||||
public void testKt21080() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/coroutines/kt21080.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt21605.kt")
|
||||
public void testKt21605() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/coroutines/kt21605.kt");
|
||||
@@ -5764,6 +5774,11 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
|
||||
runTest("compiler/testData/codegen/box/coroutines/kt44710.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt44781.kt")
|
||||
public void testKt44781() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/coroutines/kt44781.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt45377.kt")
|
||||
public void testKt45377() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/coroutines/kt45377.kt");
|
||||
@@ -6343,6 +6358,11 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
|
||||
KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS, testDataFilePath);
|
||||
}
|
||||
|
||||
@TestMetadata("adapted.kt")
|
||||
public void testAdapted() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/coroutines/featureIntersection/callableReference/function/adapted.kt");
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInFunction() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/featureIntersection/callableReference/function"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS, true);
|
||||
}
|
||||
@@ -9224,6 +9244,11 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
|
||||
runTest("compiler/testData/codegen/box/delegation/inDataClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt30102_comparable.kt")
|
||||
public void testKt30102_comparable() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/delegation/kt30102_comparable.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt8154.kt")
|
||||
public void testKt8154() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/delegation/kt8154.kt");
|
||||
@@ -9513,6 +9538,16 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
|
||||
runTest("compiler/testData/codegen/box/diagnostics/functions/tailRecursion/realStringRepeat.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("recursiveCallInInlineLambda.kt")
|
||||
public void testRecursiveCallInInlineLambda() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/diagnostics/functions/tailRecursion/recursiveCallInInlineLambda.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("recursiveCallInInlineLambdaWithCapture.kt")
|
||||
public void testRecursiveCallInInlineLambdaWithCapture() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/diagnostics/functions/tailRecursion/recursiveCallInInlineLambdaWithCapture.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("recursiveCallInLambda.kt")
|
||||
public void testRecursiveCallInLambda() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/diagnostics/functions/tailRecursion/recursiveCallInLambda.kt");
|
||||
@@ -10696,6 +10731,11 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
|
||||
runTest("compiler/testData/codegen/box/funInterface/irrelevantPrivateDeclarations.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt45444_privateFunInterface.kt")
|
||||
public void testKt45444_privateFunInterface() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/funInterface/kt45444_privateFunInterface.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("multimodule.kt")
|
||||
public void testMultimodule() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/funInterface/multimodule.kt");
|
||||
@@ -12572,6 +12612,11 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/kt28585.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt31994.kt")
|
||||
public void testKt31994() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/kt31994.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt32793.kt")
|
||||
public void testKt32793() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/kt32793.kt");
|
||||
@@ -12622,6 +12667,11 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/kt44867.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt44978.kt")
|
||||
public void testKt44978() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/kt44978.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt45991.kt")
|
||||
public void testKt45991() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/kt45991.kt");
|
||||
@@ -15576,6 +15626,11 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
|
||||
runTest("compiler/testData/codegen/box/localClasses/kt4174.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt45383.kt")
|
||||
public void testKt45383() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/localClasses/kt45383.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("localClass.kt")
|
||||
public void testLocalClass() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/localClasses/localClass.kt");
|
||||
@@ -27262,6 +27317,11 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
|
||||
runTest("compiler/testData/codegen/box/when/kt2466.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt45081.kt")
|
||||
public void testKt45081() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/when/kt45081.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt5307.kt")
|
||||
public void testKt5307() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/when/kt5307.kt");
|
||||
|
||||
Generated
+10
@@ -2342,6 +2342,11 @@ public class JsCodegenInlineTestGenerated extends AbstractJsCodegenInlineTest {
|
||||
runTest("compiler/testData/codegen/boxInline/nonLocalReturns/kt8948v2.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt9304.kt")
|
||||
public void testKt9304() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/nonLocalReturns/kt9304.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("nestedNonLocals.kt")
|
||||
public void testNestedNonLocals() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/nonLocalReturns/nestedNonLocals.kt");
|
||||
@@ -2995,6 +3000,11 @@ public class JsCodegenInlineTestGenerated extends AbstractJsCodegenInlineTest {
|
||||
runTest("compiler/testData/codegen/boxInline/reified/kt18977.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt28234.kt")
|
||||
public void testKt28234() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/reified/kt28234.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt35511.kt")
|
||||
public void testKt35511() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/reified/kt35511.kt");
|
||||
|
||||
+5
@@ -240,6 +240,11 @@ public class JsLegacyPrimitiveArraysBoxTestGenerated extends AbstractJsLegacyPri
|
||||
runTest("compiler/testData/codegen/box/arrays/kt33.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt34291_16dimensions.kt")
|
||||
public void testKt34291_16dimensions() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/arrays/kt34291_16dimensions.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt3771.kt")
|
||||
public void testKt3771() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/arrays/kt3771.kt");
|
||||
|
||||
js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/wasm/semantics/IrCodegenBoxWasmTestGenerated.java
Generated
+40
@@ -367,6 +367,11 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest
|
||||
runTest("compiler/testData/codegen/box/arrays/kt238.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt34291_16dimensions.kt")
|
||||
public void testKt34291_16dimensions() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/arrays/kt34291_16dimensions.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt3771.kt")
|
||||
public void testKt3771() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/arrays/kt3771.kt");
|
||||
@@ -4312,6 +4317,11 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest
|
||||
runTest("compiler/testData/codegen/box/delegation/inDataClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt30102_comparable.kt")
|
||||
public void testKt30102_comparable() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/delegation/kt30102_comparable.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt8154.kt")
|
||||
public void testKt8154() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/delegation/kt8154.kt");
|
||||
@@ -4546,6 +4556,16 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest
|
||||
runTest("compiler/testData/codegen/box/diagnostics/functions/tailRecursion/realIteratorFoldl.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("recursiveCallInInlineLambda.kt")
|
||||
public void testRecursiveCallInInlineLambda() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/diagnostics/functions/tailRecursion/recursiveCallInInlineLambda.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("recursiveCallInInlineLambdaWithCapture.kt")
|
||||
public void testRecursiveCallInInlineLambdaWithCapture() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/diagnostics/functions/tailRecursion/recursiveCallInInlineLambdaWithCapture.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("recursiveInnerFunction.kt")
|
||||
public void testRecursiveInnerFunction() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/diagnostics/functions/tailRecursion/recursiveInnerFunction.kt");
|
||||
@@ -6797,6 +6817,11 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/kt27706.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt31994.kt")
|
||||
public void testKt31994() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/kt31994.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt33119.kt")
|
||||
public void testKt33119() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/kt33119.kt");
|
||||
@@ -6842,6 +6867,11 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/kt44867.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt44978.kt")
|
||||
public void testKt44978() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/kt44978.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt45991.kt")
|
||||
public void testKt45991() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/inlineClasses/kt45991.kt");
|
||||
@@ -9376,6 +9406,11 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest
|
||||
runTest("compiler/testData/codegen/box/localClasses/kt4174.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt45383.kt")
|
||||
public void testKt45383() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/localClasses/kt45383.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("localClass.kt")
|
||||
public void testLocalClass() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/localClasses/localClass.kt");
|
||||
@@ -15415,6 +15450,11 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest
|
||||
runTest("compiler/testData/codegen/box/when/kt2466.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt45081.kt")
|
||||
public void testKt45081() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/when/kt45081.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt5307.kt")
|
||||
public void testKt5307() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/when/kt5307.kt");
|
||||
|
||||
Reference in New Issue
Block a user