[IR] Add new tests on inline to check issues with type parameters
#KT-58241
This commit is contained in:
+46
@@ -5849,6 +5849,52 @@ public class FirLightTreeBlackBoxInlineCodegenWithBytecodeInlinerTestGenerated e
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Nested
|
||||||
|
@TestMetadata("compiler/testData/codegen/boxInline/typeParameters")
|
||||||
|
@TestDataPath("$PROJECT_ROOT")
|
||||||
|
public class TypeParameters {
|
||||||
|
@Test
|
||||||
|
public void testAllFilesPresentInTypeParameters() throws Exception {
|
||||||
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/typeParameters"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("anonymousObject.kt")
|
||||||
|
public void testAnonymousObject() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/boxInline/typeParameters/anonymousObject.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("basic.kt")
|
||||||
|
public void testBasic() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/boxInline/typeParameters/basic.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("projectionTypeArguments.kt")
|
||||||
|
public void testProjectionTypeArguments() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/boxInline/typeParameters/projectionTypeArguments.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("severalUpperBounds.kt")
|
||||||
|
public void testSeveralUpperBounds() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/boxInline/typeParameters/severalUpperBounds.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("typeArgFromGenericBaseClass.kt")
|
||||||
|
public void testTypeArgFromGenericBaseClass() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/boxInline/typeParameters/typeArgFromGenericBaseClass.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("uncheckedCastToNothing.kt")
|
||||||
|
public void testUncheckedCastToNothing() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/boxInline/typeParameters/uncheckedCastToNothing.kt");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@Nested
|
@Nested
|
||||||
@TestMetadata("compiler/testData/codegen/boxInline/varargs")
|
@TestMetadata("compiler/testData/codegen/boxInline/varargs")
|
||||||
@TestDataPath("$PROJECT_ROOT")
|
@TestDataPath("$PROJECT_ROOT")
|
||||||
|
|||||||
+46
@@ -5849,6 +5849,52 @@ public class FirLightTreeBlackBoxInlineCodegenWithIrInlinerTestGenerated extends
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Nested
|
||||||
|
@TestMetadata("compiler/testData/codegen/boxInline/typeParameters")
|
||||||
|
@TestDataPath("$PROJECT_ROOT")
|
||||||
|
public class TypeParameters {
|
||||||
|
@Test
|
||||||
|
public void testAllFilesPresentInTypeParameters() throws Exception {
|
||||||
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/typeParameters"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("anonymousObject.kt")
|
||||||
|
public void testAnonymousObject() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/boxInline/typeParameters/anonymousObject.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("basic.kt")
|
||||||
|
public void testBasic() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/boxInline/typeParameters/basic.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("projectionTypeArguments.kt")
|
||||||
|
public void testProjectionTypeArguments() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/boxInline/typeParameters/projectionTypeArguments.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("severalUpperBounds.kt")
|
||||||
|
public void testSeveralUpperBounds() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/boxInline/typeParameters/severalUpperBounds.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("typeArgFromGenericBaseClass.kt")
|
||||||
|
public void testTypeArgFromGenericBaseClass() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/boxInline/typeParameters/typeArgFromGenericBaseClass.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("uncheckedCastToNothing.kt")
|
||||||
|
public void testUncheckedCastToNothing() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/boxInline/typeParameters/uncheckedCastToNothing.kt");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@Nested
|
@Nested
|
||||||
@TestMetadata("compiler/testData/codegen/boxInline/varargs")
|
@TestMetadata("compiler/testData/codegen/boxInline/varargs")
|
||||||
@TestDataPath("$PROJECT_ROOT")
|
@TestDataPath("$PROJECT_ROOT")
|
||||||
|
|||||||
+46
@@ -5849,6 +5849,52 @@ public class FirLightTreeSerializeCompileKotlinAgainstInlineKotlinTestGenerated
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Nested
|
||||||
|
@TestMetadata("compiler/testData/codegen/boxInline/typeParameters")
|
||||||
|
@TestDataPath("$PROJECT_ROOT")
|
||||||
|
public class TypeParameters {
|
||||||
|
@Test
|
||||||
|
public void testAllFilesPresentInTypeParameters() throws Exception {
|
||||||
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/typeParameters"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR_SERIALIZE, true);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("anonymousObject.kt")
|
||||||
|
public void testAnonymousObject() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/boxInline/typeParameters/anonymousObject.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("basic.kt")
|
||||||
|
public void testBasic() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/boxInline/typeParameters/basic.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("projectionTypeArguments.kt")
|
||||||
|
public void testProjectionTypeArguments() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/boxInline/typeParameters/projectionTypeArguments.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("severalUpperBounds.kt")
|
||||||
|
public void testSeveralUpperBounds() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/boxInline/typeParameters/severalUpperBounds.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("typeArgFromGenericBaseClass.kt")
|
||||||
|
public void testTypeArgFromGenericBaseClass() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/boxInline/typeParameters/typeArgFromGenericBaseClass.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("uncheckedCastToNothing.kt")
|
||||||
|
public void testUncheckedCastToNothing() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/boxInline/typeParameters/uncheckedCastToNothing.kt");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@Nested
|
@Nested
|
||||||
@TestMetadata("compiler/testData/codegen/boxInline/varargs")
|
@TestMetadata("compiler/testData/codegen/boxInline/varargs")
|
||||||
@TestDataPath("$PROJECT_ROOT")
|
@TestDataPath("$PROJECT_ROOT")
|
||||||
|
|||||||
+46
@@ -5849,6 +5849,52 @@ public class FirPsiBlackBoxInlineCodegenWithBytecodeInlinerTestGenerated extends
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Nested
|
||||||
|
@TestMetadata("compiler/testData/codegen/boxInline/typeParameters")
|
||||||
|
@TestDataPath("$PROJECT_ROOT")
|
||||||
|
public class TypeParameters {
|
||||||
|
@Test
|
||||||
|
public void testAllFilesPresentInTypeParameters() throws Exception {
|
||||||
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/typeParameters"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("anonymousObject.kt")
|
||||||
|
public void testAnonymousObject() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/boxInline/typeParameters/anonymousObject.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("basic.kt")
|
||||||
|
public void testBasic() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/boxInline/typeParameters/basic.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("projectionTypeArguments.kt")
|
||||||
|
public void testProjectionTypeArguments() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/boxInline/typeParameters/projectionTypeArguments.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("severalUpperBounds.kt")
|
||||||
|
public void testSeveralUpperBounds() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/boxInline/typeParameters/severalUpperBounds.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("typeArgFromGenericBaseClass.kt")
|
||||||
|
public void testTypeArgFromGenericBaseClass() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/boxInline/typeParameters/typeArgFromGenericBaseClass.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("uncheckedCastToNothing.kt")
|
||||||
|
public void testUncheckedCastToNothing() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/boxInline/typeParameters/uncheckedCastToNothing.kt");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@Nested
|
@Nested
|
||||||
@TestMetadata("compiler/testData/codegen/boxInline/varargs")
|
@TestMetadata("compiler/testData/codegen/boxInline/varargs")
|
||||||
@TestDataPath("$PROJECT_ROOT")
|
@TestDataPath("$PROJECT_ROOT")
|
||||||
|
|||||||
+46
@@ -5849,6 +5849,52 @@ public class FirPsiBlackBoxInlineCodegenWithIrInlinerTestGenerated extends Abstr
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Nested
|
||||||
|
@TestMetadata("compiler/testData/codegen/boxInline/typeParameters")
|
||||||
|
@TestDataPath("$PROJECT_ROOT")
|
||||||
|
public class TypeParameters {
|
||||||
|
@Test
|
||||||
|
public void testAllFilesPresentInTypeParameters() throws Exception {
|
||||||
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/typeParameters"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("anonymousObject.kt")
|
||||||
|
public void testAnonymousObject() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/boxInline/typeParameters/anonymousObject.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("basic.kt")
|
||||||
|
public void testBasic() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/boxInline/typeParameters/basic.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("projectionTypeArguments.kt")
|
||||||
|
public void testProjectionTypeArguments() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/boxInline/typeParameters/projectionTypeArguments.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("severalUpperBounds.kt")
|
||||||
|
public void testSeveralUpperBounds() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/boxInline/typeParameters/severalUpperBounds.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("typeArgFromGenericBaseClass.kt")
|
||||||
|
public void testTypeArgFromGenericBaseClass() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/boxInline/typeParameters/typeArgFromGenericBaseClass.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("uncheckedCastToNothing.kt")
|
||||||
|
public void testUncheckedCastToNothing() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/boxInline/typeParameters/uncheckedCastToNothing.kt");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@Nested
|
@Nested
|
||||||
@TestMetadata("compiler/testData/codegen/boxInline/varargs")
|
@TestMetadata("compiler/testData/codegen/boxInline/varargs")
|
||||||
@TestDataPath("$PROJECT_ROOT")
|
@TestDataPath("$PROJECT_ROOT")
|
||||||
|
|||||||
+46
@@ -5849,6 +5849,52 @@ public class FirPsiSerializeCompileKotlinAgainstInlineKotlinTestGenerated extend
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Nested
|
||||||
|
@TestMetadata("compiler/testData/codegen/boxInline/typeParameters")
|
||||||
|
@TestDataPath("$PROJECT_ROOT")
|
||||||
|
public class TypeParameters {
|
||||||
|
@Test
|
||||||
|
public void testAllFilesPresentInTypeParameters() throws Exception {
|
||||||
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/typeParameters"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR_SERIALIZE, true);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("anonymousObject.kt")
|
||||||
|
public void testAnonymousObject() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/boxInline/typeParameters/anonymousObject.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("basic.kt")
|
||||||
|
public void testBasic() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/boxInline/typeParameters/basic.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("projectionTypeArguments.kt")
|
||||||
|
public void testProjectionTypeArguments() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/boxInline/typeParameters/projectionTypeArguments.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("severalUpperBounds.kt")
|
||||||
|
public void testSeveralUpperBounds() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/boxInline/typeParameters/severalUpperBounds.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("typeArgFromGenericBaseClass.kt")
|
||||||
|
public void testTypeArgFromGenericBaseClass() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/boxInline/typeParameters/typeArgFromGenericBaseClass.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("uncheckedCastToNothing.kt")
|
||||||
|
public void testUncheckedCastToNothing() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/boxInline/typeParameters/uncheckedCastToNothing.kt");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@Nested
|
@Nested
|
||||||
@TestMetadata("compiler/testData/codegen/boxInline/varargs")
|
@TestMetadata("compiler/testData/codegen/boxInline/varargs")
|
||||||
@TestDataPath("$PROJECT_ROOT")
|
@TestDataPath("$PROJECT_ROOT")
|
||||||
|
|||||||
@@ -0,0 +1,29 @@
|
|||||||
|
// FILE: 1.kt
|
||||||
|
interface I<TTTT> {
|
||||||
|
fun get(): TTTT
|
||||||
|
fun set(x: TTTT)
|
||||||
|
|
||||||
|
}
|
||||||
|
interface J
|
||||||
|
class X(val result: String) : J
|
||||||
|
class Box<T>(val x : T) {
|
||||||
|
inline fun getI(crossinline block : () -> Unit) : I<T> {
|
||||||
|
val temp = x
|
||||||
|
return object : I<T> {
|
||||||
|
var t = temp
|
||||||
|
override fun get() = t
|
||||||
|
override fun set(y: T) {
|
||||||
|
block()
|
||||||
|
t = y
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
fun Box<*>.getIExt() = getI() {}
|
||||||
|
|
||||||
|
// FILE: 2.kt
|
||||||
|
fun box(): String {
|
||||||
|
val xObject = Box(X("OK")).getIExt().get() as X
|
||||||
|
return xObject.result
|
||||||
|
}
|
||||||
@@ -0,0 +1,16 @@
|
|||||||
|
// FILE: 1.kt
|
||||||
|
|
||||||
|
class Box<T>(val value: T) {
|
||||||
|
inline fun run(block: (T) -> Unit) {
|
||||||
|
block(value)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// FILE: 2.kt
|
||||||
|
fun box(): String {
|
||||||
|
Box("OK").run { outer ->
|
||||||
|
return outer
|
||||||
|
}
|
||||||
|
|
||||||
|
return "Fail"
|
||||||
|
}
|
||||||
+31
@@ -0,0 +1,31 @@
|
|||||||
|
// FILE: 1.kt
|
||||||
|
class Box<T>(
|
||||||
|
private var t: T
|
||||||
|
) {
|
||||||
|
fun set(t: T): T {
|
||||||
|
this.t = t
|
||||||
|
return t
|
||||||
|
}
|
||||||
|
fun get(): T = t
|
||||||
|
}
|
||||||
|
|
||||||
|
inline fun <U> Box<U>.act(): U {
|
||||||
|
val u = get()
|
||||||
|
return set(u)
|
||||||
|
}
|
||||||
|
|
||||||
|
fun foo(uuu: Box<*>): Any? {
|
||||||
|
val x = uuu.act()
|
||||||
|
return x
|
||||||
|
}
|
||||||
|
|
||||||
|
// This code is not compilable
|
||||||
|
// fun fooInlined(uuu: Box<*>) {
|
||||||
|
// val u = get()
|
||||||
|
// return set(u)
|
||||||
|
// }
|
||||||
|
|
||||||
|
// FILE: 2.kt
|
||||||
|
fun box(): String {
|
||||||
|
return foo(Box("OK")).toString()
|
||||||
|
}
|
||||||
@@ -0,0 +1,25 @@
|
|||||||
|
// FILE: 1.kt
|
||||||
|
interface I {
|
||||||
|
fun f(): String
|
||||||
|
}
|
||||||
|
|
||||||
|
interface J {
|
||||||
|
fun f2(): String
|
||||||
|
}
|
||||||
|
|
||||||
|
class X : I, J {
|
||||||
|
override fun f(): String = "O"
|
||||||
|
override fun f2(): String = "K"
|
||||||
|
}
|
||||||
|
|
||||||
|
class Box<T>(val x: T) where T: Any, T : I, T: J {
|
||||||
|
inline fun f(): String {
|
||||||
|
val a = x
|
||||||
|
return a.f() + a.f2()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// FILE: 2.kt
|
||||||
|
fun box(): String {
|
||||||
|
return Box(X()).f()
|
||||||
|
}
|
||||||
+25
@@ -0,0 +1,25 @@
|
|||||||
|
// FILE: 1.kt
|
||||||
|
open class Box<T>(
|
||||||
|
private var t: T
|
||||||
|
) {
|
||||||
|
fun set(t: T): T {
|
||||||
|
this.t = t
|
||||||
|
return t
|
||||||
|
}
|
||||||
|
fun get(): T = t
|
||||||
|
inline fun act(): T {
|
||||||
|
val u = get()
|
||||||
|
return set(u)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
class StringBox(t: String) : Box<String>(t)
|
||||||
|
|
||||||
|
fun foo(uuu: StringBox): String {
|
||||||
|
val x = uuu.act()
|
||||||
|
return x
|
||||||
|
}
|
||||||
|
|
||||||
|
// FILE: 2.kt
|
||||||
|
fun box(): String {
|
||||||
|
return foo(StringBox("OK"))
|
||||||
|
}
|
||||||
@@ -0,0 +1,16 @@
|
|||||||
|
// IGNORE_INLINER: IR
|
||||||
|
// IGNORE_BACKEND: WASM
|
||||||
|
|
||||||
|
// FILE: 1.kt
|
||||||
|
inline fun <U> unchecked(any: Any): Any {
|
||||||
|
@Suppress("UNCHECKED_CAST")
|
||||||
|
val u: U = any as U
|
||||||
|
return u as Any
|
||||||
|
}
|
||||||
|
|
||||||
|
// FILE: 2.kt
|
||||||
|
fun box(): String {
|
||||||
|
// in current inline implementation everyting works fine
|
||||||
|
// but if we will reify all type parameters, then this example will fail on runtime
|
||||||
|
return unchecked<Nothing>("OK").toString()
|
||||||
|
}
|
||||||
+46
@@ -5771,6 +5771,52 @@ public class BlackBoxInlineCodegenTestGenerated extends AbstractBlackBoxInlineCo
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Nested
|
||||||
|
@TestMetadata("compiler/testData/codegen/boxInline/typeParameters")
|
||||||
|
@TestDataPath("$PROJECT_ROOT")
|
||||||
|
public class TypeParameters {
|
||||||
|
@Test
|
||||||
|
public void testAllFilesPresentInTypeParameters() throws Exception {
|
||||||
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/typeParameters"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("anonymousObject.kt")
|
||||||
|
public void testAnonymousObject() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/boxInline/typeParameters/anonymousObject.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("basic.kt")
|
||||||
|
public void testBasic() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/boxInline/typeParameters/basic.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("projectionTypeArguments.kt")
|
||||||
|
public void testProjectionTypeArguments() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/boxInline/typeParameters/projectionTypeArguments.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("severalUpperBounds.kt")
|
||||||
|
public void testSeveralUpperBounds() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/boxInline/typeParameters/severalUpperBounds.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("typeArgFromGenericBaseClass.kt")
|
||||||
|
public void testTypeArgFromGenericBaseClass() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/boxInline/typeParameters/typeArgFromGenericBaseClass.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("uncheckedCastToNothing.kt")
|
||||||
|
public void testUncheckedCastToNothing() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/boxInline/typeParameters/uncheckedCastToNothing.kt");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@Nested
|
@Nested
|
||||||
@TestMetadata("compiler/testData/codegen/boxInline/varargs")
|
@TestMetadata("compiler/testData/codegen/boxInline/varargs")
|
||||||
@TestDataPath("$PROJECT_ROOT")
|
@TestDataPath("$PROJECT_ROOT")
|
||||||
|
|||||||
+46
@@ -5771,6 +5771,52 @@ public class CompileKotlinAgainstInlineKotlinTestGenerated extends AbstractCompi
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Nested
|
||||||
|
@TestMetadata("compiler/testData/codegen/boxInline/typeParameters")
|
||||||
|
@TestDataPath("$PROJECT_ROOT")
|
||||||
|
public class TypeParameters {
|
||||||
|
@Test
|
||||||
|
public void testAllFilesPresentInTypeParameters() throws Exception {
|
||||||
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/typeParameters"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("anonymousObject.kt")
|
||||||
|
public void testAnonymousObject() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/boxInline/typeParameters/anonymousObject.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("basic.kt")
|
||||||
|
public void testBasic() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/boxInline/typeParameters/basic.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("projectionTypeArguments.kt")
|
||||||
|
public void testProjectionTypeArguments() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/boxInline/typeParameters/projectionTypeArguments.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("severalUpperBounds.kt")
|
||||||
|
public void testSeveralUpperBounds() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/boxInline/typeParameters/severalUpperBounds.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("typeArgFromGenericBaseClass.kt")
|
||||||
|
public void testTypeArgFromGenericBaseClass() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/boxInline/typeParameters/typeArgFromGenericBaseClass.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("uncheckedCastToNothing.kt")
|
||||||
|
public void testUncheckedCastToNothing() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/boxInline/typeParameters/uncheckedCastToNothing.kt");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@Nested
|
@Nested
|
||||||
@TestMetadata("compiler/testData/codegen/boxInline/varargs")
|
@TestMetadata("compiler/testData/codegen/boxInline/varargs")
|
||||||
@TestDataPath("$PROJECT_ROOT")
|
@TestDataPath("$PROJECT_ROOT")
|
||||||
|
|||||||
+46
@@ -5849,6 +5849,52 @@ public class IrBlackBoxInlineCodegenWithBytecodeInlinerTestGenerated extends Abs
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Nested
|
||||||
|
@TestMetadata("compiler/testData/codegen/boxInline/typeParameters")
|
||||||
|
@TestDataPath("$PROJECT_ROOT")
|
||||||
|
public class TypeParameters {
|
||||||
|
@Test
|
||||||
|
public void testAllFilesPresentInTypeParameters() throws Exception {
|
||||||
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/typeParameters"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("anonymousObject.kt")
|
||||||
|
public void testAnonymousObject() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/boxInline/typeParameters/anonymousObject.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("basic.kt")
|
||||||
|
public void testBasic() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/boxInline/typeParameters/basic.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("projectionTypeArguments.kt")
|
||||||
|
public void testProjectionTypeArguments() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/boxInline/typeParameters/projectionTypeArguments.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("severalUpperBounds.kt")
|
||||||
|
public void testSeveralUpperBounds() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/boxInline/typeParameters/severalUpperBounds.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("typeArgFromGenericBaseClass.kt")
|
||||||
|
public void testTypeArgFromGenericBaseClass() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/boxInline/typeParameters/typeArgFromGenericBaseClass.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("uncheckedCastToNothing.kt")
|
||||||
|
public void testUncheckedCastToNothing() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/boxInline/typeParameters/uncheckedCastToNothing.kt");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@Nested
|
@Nested
|
||||||
@TestMetadata("compiler/testData/codegen/boxInline/varargs")
|
@TestMetadata("compiler/testData/codegen/boxInline/varargs")
|
||||||
@TestDataPath("$PROJECT_ROOT")
|
@TestDataPath("$PROJECT_ROOT")
|
||||||
|
|||||||
+46
@@ -5849,6 +5849,52 @@ public class IrBlackBoxInlineCodegenWithIrInlinerTestGenerated extends AbstractI
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Nested
|
||||||
|
@TestMetadata("compiler/testData/codegen/boxInline/typeParameters")
|
||||||
|
@TestDataPath("$PROJECT_ROOT")
|
||||||
|
public class TypeParameters {
|
||||||
|
@Test
|
||||||
|
public void testAllFilesPresentInTypeParameters() throws Exception {
|
||||||
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/typeParameters"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("anonymousObject.kt")
|
||||||
|
public void testAnonymousObject() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/boxInline/typeParameters/anonymousObject.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("basic.kt")
|
||||||
|
public void testBasic() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/boxInline/typeParameters/basic.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("projectionTypeArguments.kt")
|
||||||
|
public void testProjectionTypeArguments() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/boxInline/typeParameters/projectionTypeArguments.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("severalUpperBounds.kt")
|
||||||
|
public void testSeveralUpperBounds() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/boxInline/typeParameters/severalUpperBounds.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("typeArgFromGenericBaseClass.kt")
|
||||||
|
public void testTypeArgFromGenericBaseClass() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/boxInline/typeParameters/typeArgFromGenericBaseClass.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("uncheckedCastToNothing.kt")
|
||||||
|
public void testUncheckedCastToNothing() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/boxInline/typeParameters/uncheckedCastToNothing.kt");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@Nested
|
@Nested
|
||||||
@TestMetadata("compiler/testData/codegen/boxInline/varargs")
|
@TestMetadata("compiler/testData/codegen/boxInline/varargs")
|
||||||
@TestDataPath("$PROJECT_ROOT")
|
@TestDataPath("$PROJECT_ROOT")
|
||||||
|
|||||||
+46
@@ -5849,6 +5849,52 @@ public class IrCompileKotlinAgainstInlineKotlinTestGenerated extends AbstractIrC
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Nested
|
||||||
|
@TestMetadata("compiler/testData/codegen/boxInline/typeParameters")
|
||||||
|
@TestDataPath("$PROJECT_ROOT")
|
||||||
|
public class TypeParameters {
|
||||||
|
@Test
|
||||||
|
public void testAllFilesPresentInTypeParameters() throws Exception {
|
||||||
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/typeParameters"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("anonymousObject.kt")
|
||||||
|
public void testAnonymousObject() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/boxInline/typeParameters/anonymousObject.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("basic.kt")
|
||||||
|
public void testBasic() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/boxInline/typeParameters/basic.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("projectionTypeArguments.kt")
|
||||||
|
public void testProjectionTypeArguments() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/boxInline/typeParameters/projectionTypeArguments.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("severalUpperBounds.kt")
|
||||||
|
public void testSeveralUpperBounds() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/boxInline/typeParameters/severalUpperBounds.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("typeArgFromGenericBaseClass.kt")
|
||||||
|
public void testTypeArgFromGenericBaseClass() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/boxInline/typeParameters/typeArgFromGenericBaseClass.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("uncheckedCastToNothing.kt")
|
||||||
|
public void testUncheckedCastToNothing() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/boxInline/typeParameters/uncheckedCastToNothing.kt");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@Nested
|
@Nested
|
||||||
@TestMetadata("compiler/testData/codegen/boxInline/varargs")
|
@TestMetadata("compiler/testData/codegen/boxInline/varargs")
|
||||||
@TestDataPath("$PROJECT_ROOT")
|
@TestDataPath("$PROJECT_ROOT")
|
||||||
|
|||||||
+46
@@ -5849,6 +5849,52 @@ public class IrSerializeCompileKotlinAgainstInlineKotlinTestGenerated extends Ab
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Nested
|
||||||
|
@TestMetadata("compiler/testData/codegen/boxInline/typeParameters")
|
||||||
|
@TestDataPath("$PROJECT_ROOT")
|
||||||
|
public class TypeParameters {
|
||||||
|
@Test
|
||||||
|
public void testAllFilesPresentInTypeParameters() throws Exception {
|
||||||
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/typeParameters"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("anonymousObject.kt")
|
||||||
|
public void testAnonymousObject() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/boxInline/typeParameters/anonymousObject.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("basic.kt")
|
||||||
|
public void testBasic() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/boxInline/typeParameters/basic.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("projectionTypeArguments.kt")
|
||||||
|
public void testProjectionTypeArguments() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/boxInline/typeParameters/projectionTypeArguments.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("severalUpperBounds.kt")
|
||||||
|
public void testSeveralUpperBounds() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/boxInline/typeParameters/severalUpperBounds.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("typeArgFromGenericBaseClass.kt")
|
||||||
|
public void testTypeArgFromGenericBaseClass() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/boxInline/typeParameters/typeArgFromGenericBaseClass.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("uncheckedCastToNothing.kt")
|
||||||
|
public void testUncheckedCastToNothing() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/boxInline/typeParameters/uncheckedCastToNothing.kt");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@Nested
|
@Nested
|
||||||
@TestMetadata("compiler/testData/codegen/boxInline/varargs")
|
@TestMetadata("compiler/testData/codegen/boxInline/varargs")
|
||||||
@TestDataPath("$PROJECT_ROOT")
|
@TestDataPath("$PROJECT_ROOT")
|
||||||
|
|||||||
+46
@@ -5849,6 +5849,52 @@ public class JvmIrAgainstOldBoxInlineTestGenerated extends AbstractJvmIrAgainstO
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Nested
|
||||||
|
@TestMetadata("compiler/testData/codegen/boxInline/typeParameters")
|
||||||
|
@TestDataPath("$PROJECT_ROOT")
|
||||||
|
public class TypeParameters {
|
||||||
|
@Test
|
||||||
|
public void testAllFilesPresentInTypeParameters() throws Exception {
|
||||||
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/typeParameters"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_IR_AGAINST_OLD, true);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("anonymousObject.kt")
|
||||||
|
public void testAnonymousObject() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/boxInline/typeParameters/anonymousObject.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("basic.kt")
|
||||||
|
public void testBasic() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/boxInline/typeParameters/basic.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("projectionTypeArguments.kt")
|
||||||
|
public void testProjectionTypeArguments() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/boxInline/typeParameters/projectionTypeArguments.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("severalUpperBounds.kt")
|
||||||
|
public void testSeveralUpperBounds() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/boxInline/typeParameters/severalUpperBounds.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("typeArgFromGenericBaseClass.kt")
|
||||||
|
public void testTypeArgFromGenericBaseClass() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/boxInline/typeParameters/typeArgFromGenericBaseClass.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("uncheckedCastToNothing.kt")
|
||||||
|
public void testUncheckedCastToNothing() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/boxInline/typeParameters/uncheckedCastToNothing.kt");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@Nested
|
@Nested
|
||||||
@TestMetadata("compiler/testData/codegen/boxInline/varargs")
|
@TestMetadata("compiler/testData/codegen/boxInline/varargs")
|
||||||
@TestDataPath("$PROJECT_ROOT")
|
@TestDataPath("$PROJECT_ROOT")
|
||||||
|
|||||||
+46
@@ -5771,6 +5771,52 @@ public class JvmOldAgainstIrBoxInlineTestGenerated extends AbstractJvmOldAgainst
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Nested
|
||||||
|
@TestMetadata("compiler/testData/codegen/boxInline/typeParameters")
|
||||||
|
@TestDataPath("$PROJECT_ROOT")
|
||||||
|
public class TypeParameters {
|
||||||
|
@Test
|
||||||
|
public void testAllFilesPresentInTypeParameters() throws Exception {
|
||||||
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/typeParameters"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, true);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("anonymousObject.kt")
|
||||||
|
public void testAnonymousObject() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/boxInline/typeParameters/anonymousObject.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("basic.kt")
|
||||||
|
public void testBasic() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/boxInline/typeParameters/basic.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("projectionTypeArguments.kt")
|
||||||
|
public void testProjectionTypeArguments() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/boxInline/typeParameters/projectionTypeArguments.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("severalUpperBounds.kt")
|
||||||
|
public void testSeveralUpperBounds() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/boxInline/typeParameters/severalUpperBounds.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("typeArgFromGenericBaseClass.kt")
|
||||||
|
public void testTypeArgFromGenericBaseClass() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/boxInline/typeParameters/typeArgFromGenericBaseClass.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("uncheckedCastToNothing.kt")
|
||||||
|
public void testUncheckedCastToNothing() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/boxInline/typeParameters/uncheckedCastToNothing.kt");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@Nested
|
@Nested
|
||||||
@TestMetadata("compiler/testData/codegen/boxInline/varargs")
|
@TestMetadata("compiler/testData/codegen/boxInline/varargs")
|
||||||
@TestDataPath("$PROJECT_ROOT")
|
@TestDataPath("$PROJECT_ROOT")
|
||||||
|
|||||||
Generated
+46
@@ -5093,6 +5093,52 @@ public class FirJsCodegenInlineTestGenerated extends AbstractFirJsCodegenInlineT
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Nested
|
||||||
|
@TestMetadata("compiler/testData/codegen/boxInline/typeParameters")
|
||||||
|
@TestDataPath("$PROJECT_ROOT")
|
||||||
|
public class TypeParameters {
|
||||||
|
@Test
|
||||||
|
public void testAllFilesPresentInTypeParameters() throws Exception {
|
||||||
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/typeParameters"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("anonymousObject.kt")
|
||||||
|
public void testAnonymousObject() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/boxInline/typeParameters/anonymousObject.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("basic.kt")
|
||||||
|
public void testBasic() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/boxInline/typeParameters/basic.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("projectionTypeArguments.kt")
|
||||||
|
public void testProjectionTypeArguments() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/boxInline/typeParameters/projectionTypeArguments.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("severalUpperBounds.kt")
|
||||||
|
public void testSeveralUpperBounds() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/boxInline/typeParameters/severalUpperBounds.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("typeArgFromGenericBaseClass.kt")
|
||||||
|
public void testTypeArgFromGenericBaseClass() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/boxInline/typeParameters/typeArgFromGenericBaseClass.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("uncheckedCastToNothing.kt")
|
||||||
|
public void testUncheckedCastToNothing() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/boxInline/typeParameters/uncheckedCastToNothing.kt");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@Nested
|
@Nested
|
||||||
@TestMetadata("compiler/testData/codegen/boxInline/varargs")
|
@TestMetadata("compiler/testData/codegen/boxInline/varargs")
|
||||||
@TestDataPath("$PROJECT_ROOT")
|
@TestDataPath("$PROJECT_ROOT")
|
||||||
|
|||||||
+46
@@ -5093,6 +5093,52 @@ public class IrJsCodegenInlineTestGenerated extends AbstractIrJsCodegenInlineTes
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Nested
|
||||||
|
@TestMetadata("compiler/testData/codegen/boxInline/typeParameters")
|
||||||
|
@TestDataPath("$PROJECT_ROOT")
|
||||||
|
public class TypeParameters {
|
||||||
|
@Test
|
||||||
|
public void testAllFilesPresentInTypeParameters() throws Exception {
|
||||||
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/typeParameters"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("anonymousObject.kt")
|
||||||
|
public void testAnonymousObject() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/boxInline/typeParameters/anonymousObject.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("basic.kt")
|
||||||
|
public void testBasic() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/boxInline/typeParameters/basic.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("projectionTypeArguments.kt")
|
||||||
|
public void testProjectionTypeArguments() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/boxInline/typeParameters/projectionTypeArguments.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("severalUpperBounds.kt")
|
||||||
|
public void testSeveralUpperBounds() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/boxInline/typeParameters/severalUpperBounds.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("typeArgFromGenericBaseClass.kt")
|
||||||
|
public void testTypeArgFromGenericBaseClass() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/boxInline/typeParameters/typeArgFromGenericBaseClass.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("uncheckedCastToNothing.kt")
|
||||||
|
public void testUncheckedCastToNothing() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/boxInline/typeParameters/uncheckedCastToNothing.kt");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@Nested
|
@Nested
|
||||||
@TestMetadata("compiler/testData/codegen/boxInline/varargs")
|
@TestMetadata("compiler/testData/codegen/boxInline/varargs")
|
||||||
@TestDataPath("$PROJECT_ROOT")
|
@TestDataPath("$PROJECT_ROOT")
|
||||||
|
|||||||
Generated
+46
@@ -5093,6 +5093,52 @@ public class IrJsES6CodegenInlineTestGenerated extends AbstractIrJsES6CodegenInl
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Nested
|
||||||
|
@TestMetadata("compiler/testData/codegen/boxInline/typeParameters")
|
||||||
|
@TestDataPath("$PROJECT_ROOT")
|
||||||
|
public class TypeParameters {
|
||||||
|
@Test
|
||||||
|
public void testAllFilesPresentInTypeParameters() throws Exception {
|
||||||
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/typeParameters"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("anonymousObject.kt")
|
||||||
|
public void testAnonymousObject() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/boxInline/typeParameters/anonymousObject.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("basic.kt")
|
||||||
|
public void testBasic() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/boxInline/typeParameters/basic.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("projectionTypeArguments.kt")
|
||||||
|
public void testProjectionTypeArguments() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/boxInline/typeParameters/projectionTypeArguments.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("severalUpperBounds.kt")
|
||||||
|
public void testSeveralUpperBounds() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/boxInline/typeParameters/severalUpperBounds.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("typeArgFromGenericBaseClass.kt")
|
||||||
|
public void testTypeArgFromGenericBaseClass() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/boxInline/typeParameters/typeArgFromGenericBaseClass.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("uncheckedCastToNothing.kt")
|
||||||
|
public void testUncheckedCastToNothing() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/boxInline/typeParameters/uncheckedCastToNothing.kt");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@Nested
|
@Nested
|
||||||
@TestMetadata("compiler/testData/codegen/boxInline/varargs")
|
@TestMetadata("compiler/testData/codegen/boxInline/varargs")
|
||||||
@TestDataPath("$PROJECT_ROOT")
|
@TestDataPath("$PROJECT_ROOT")
|
||||||
|
|||||||
+49
@@ -46164,6 +46164,55 @@ public class FirNativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTe
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Nested
|
||||||
|
@TestMetadata("compiler/testData/codegen/boxInline/typeParameters")
|
||||||
|
@TestDataPath("$PROJECT_ROOT")
|
||||||
|
@Tag("frontend-fir")
|
||||||
|
@FirPipeline()
|
||||||
|
@UseExtTestCaseGroupProvider()
|
||||||
|
public class TypeParameters {
|
||||||
|
@Test
|
||||||
|
public void testAllFilesPresentInTypeParameters() throws Exception {
|
||||||
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/typeParameters"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("anonymousObject.kt")
|
||||||
|
public void testAnonymousObject() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/boxInline/typeParameters/anonymousObject.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("basic.kt")
|
||||||
|
public void testBasic() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/boxInline/typeParameters/basic.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("projectionTypeArguments.kt")
|
||||||
|
public void testProjectionTypeArguments() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/boxInline/typeParameters/projectionTypeArguments.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("severalUpperBounds.kt")
|
||||||
|
public void testSeveralUpperBounds() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/boxInline/typeParameters/severalUpperBounds.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("typeArgFromGenericBaseClass.kt")
|
||||||
|
public void testTypeArgFromGenericBaseClass() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/boxInline/typeParameters/typeArgFromGenericBaseClass.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("uncheckedCastToNothing.kt")
|
||||||
|
public void testUncheckedCastToNothing() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/boxInline/typeParameters/uncheckedCastToNothing.kt");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@Nested
|
@Nested
|
||||||
@TestMetadata("compiler/testData/codegen/boxInline/varargs")
|
@TestMetadata("compiler/testData/codegen/boxInline/varargs")
|
||||||
@TestDataPath("$PROJECT_ROOT")
|
@TestDataPath("$PROJECT_ROOT")
|
||||||
|
|||||||
+51
@@ -47378,6 +47378,57 @@ public class FirNativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenB
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Nested
|
||||||
|
@TestMetadata("compiler/testData/codegen/boxInline/typeParameters")
|
||||||
|
@TestDataPath("$PROJECT_ROOT")
|
||||||
|
@Tag("frontend-fir")
|
||||||
|
@FirPipeline()
|
||||||
|
@UseExtTestCaseGroupProvider()
|
||||||
|
@UsePartialLinkage(mode = Mode.DISABLED)
|
||||||
|
@Tag("no-partial-linkage-may-be-skipped")
|
||||||
|
public class TypeParameters {
|
||||||
|
@Test
|
||||||
|
public void testAllFilesPresentInTypeParameters() throws Exception {
|
||||||
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/typeParameters"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("anonymousObject.kt")
|
||||||
|
public void testAnonymousObject() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/boxInline/typeParameters/anonymousObject.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("basic.kt")
|
||||||
|
public void testBasic() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/boxInline/typeParameters/basic.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("projectionTypeArguments.kt")
|
||||||
|
public void testProjectionTypeArguments() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/boxInline/typeParameters/projectionTypeArguments.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("severalUpperBounds.kt")
|
||||||
|
public void testSeveralUpperBounds() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/boxInline/typeParameters/severalUpperBounds.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("typeArgFromGenericBaseClass.kt")
|
||||||
|
public void testTypeArgFromGenericBaseClass() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/boxInline/typeParameters/typeArgFromGenericBaseClass.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("uncheckedCastToNothing.kt")
|
||||||
|
public void testUncheckedCastToNothing() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/boxInline/typeParameters/uncheckedCastToNothing.kt");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@Nested
|
@Nested
|
||||||
@TestMetadata("compiler/testData/codegen/boxInline/varargs")
|
@TestMetadata("compiler/testData/codegen/boxInline/varargs")
|
||||||
@TestDataPath("$PROJECT_ROOT")
|
@TestDataPath("$PROJECT_ROOT")
|
||||||
|
|||||||
+48
@@ -45558,6 +45558,54 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Nested
|
||||||
|
@TestMetadata("compiler/testData/codegen/boxInline/typeParameters")
|
||||||
|
@TestDataPath("$PROJECT_ROOT")
|
||||||
|
@UseExtTestCaseGroupProvider()
|
||||||
|
@DisabledTestsIfProperty(sourceLocations = { "compiler/testData/codegen/box/coroutines/featureIntersection/defaultExpect.kt", "compiler/testData/codegen/box/multiplatform/defaultArguments/*.kt", "compiler/testData/codegen/box/multiplatform/migratedOldTests/*.kt", "compiler/testData/codegen/boxInline/multiplatform/defaultArguments/receiversAndParametersInLambda.kt" }, property = ClassLevelProperty.TEST_MODE, propertyValue = "ONE_STAGE_MULTI_MODULE")
|
||||||
|
public class TypeParameters {
|
||||||
|
@Test
|
||||||
|
public void testAllFilesPresentInTypeParameters() throws Exception {
|
||||||
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/typeParameters"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("anonymousObject.kt")
|
||||||
|
public void testAnonymousObject() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/boxInline/typeParameters/anonymousObject.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("basic.kt")
|
||||||
|
public void testBasic() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/boxInline/typeParameters/basic.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("projectionTypeArguments.kt")
|
||||||
|
public void testProjectionTypeArguments() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/boxInline/typeParameters/projectionTypeArguments.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("severalUpperBounds.kt")
|
||||||
|
public void testSeveralUpperBounds() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/boxInline/typeParameters/severalUpperBounds.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("typeArgFromGenericBaseClass.kt")
|
||||||
|
public void testTypeArgFromGenericBaseClass() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/boxInline/typeParameters/typeArgFromGenericBaseClass.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("uncheckedCastToNothing.kt")
|
||||||
|
public void testUncheckedCastToNothing() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/boxInline/typeParameters/uncheckedCastToNothing.kt");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@Nested
|
@Nested
|
||||||
@TestMetadata("compiler/testData/codegen/boxInline/varargs")
|
@TestMetadata("compiler/testData/codegen/boxInline/varargs")
|
||||||
@TestDataPath("$PROJECT_ROOT")
|
@TestDataPath("$PROJECT_ROOT")
|
||||||
|
|||||||
+49
@@ -46165,6 +46165,55 @@ public class NativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenBoxT
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Nested
|
||||||
|
@TestMetadata("compiler/testData/codegen/boxInline/typeParameters")
|
||||||
|
@TestDataPath("$PROJECT_ROOT")
|
||||||
|
@UseExtTestCaseGroupProvider()
|
||||||
|
@UsePartialLinkage(mode = Mode.DISABLED)
|
||||||
|
@Tag("no-partial-linkage-may-be-skipped")
|
||||||
|
public class TypeParameters {
|
||||||
|
@Test
|
||||||
|
public void testAllFilesPresentInTypeParameters() throws Exception {
|
||||||
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/typeParameters"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("anonymousObject.kt")
|
||||||
|
public void testAnonymousObject() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/boxInline/typeParameters/anonymousObject.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("basic.kt")
|
||||||
|
public void testBasic() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/boxInline/typeParameters/basic.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("projectionTypeArguments.kt")
|
||||||
|
public void testProjectionTypeArguments() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/boxInline/typeParameters/projectionTypeArguments.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("severalUpperBounds.kt")
|
||||||
|
public void testSeveralUpperBounds() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/boxInline/typeParameters/severalUpperBounds.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("typeArgFromGenericBaseClass.kt")
|
||||||
|
public void testTypeArgFromGenericBaseClass() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/boxInline/typeParameters/typeArgFromGenericBaseClass.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("uncheckedCastToNothing.kt")
|
||||||
|
public void testUncheckedCastToNothing() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/boxInline/typeParameters/uncheckedCastToNothing.kt");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@Nested
|
@Nested
|
||||||
@TestMetadata("compiler/testData/codegen/boxInline/varargs")
|
@TestMetadata("compiler/testData/codegen/boxInline/varargs")
|
||||||
@TestDataPath("$PROJECT_ROOT")
|
@TestDataPath("$PROJECT_ROOT")
|
||||||
|
|||||||
Generated
+46
@@ -5093,6 +5093,52 @@ public class FirWasmCodegenBoxInlineTestGenerated extends AbstractFirWasmCodegen
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Nested
|
||||||
|
@TestMetadata("compiler/testData/codegen/boxInline/typeParameters")
|
||||||
|
@TestDataPath("$PROJECT_ROOT")
|
||||||
|
public class TypeParameters {
|
||||||
|
@Test
|
||||||
|
public void testAllFilesPresentInTypeParameters() throws Exception {
|
||||||
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/typeParameters"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.WASM, true);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("anonymousObject.kt")
|
||||||
|
public void testAnonymousObject() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/boxInline/typeParameters/anonymousObject.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("basic.kt")
|
||||||
|
public void testBasic() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/boxInline/typeParameters/basic.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("projectionTypeArguments.kt")
|
||||||
|
public void testProjectionTypeArguments() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/boxInline/typeParameters/projectionTypeArguments.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("severalUpperBounds.kt")
|
||||||
|
public void testSeveralUpperBounds() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/boxInline/typeParameters/severalUpperBounds.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("typeArgFromGenericBaseClass.kt")
|
||||||
|
public void testTypeArgFromGenericBaseClass() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/boxInline/typeParameters/typeArgFromGenericBaseClass.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("uncheckedCastToNothing.kt")
|
||||||
|
public void testUncheckedCastToNothing() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/boxInline/typeParameters/uncheckedCastToNothing.kt");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@Nested
|
@Nested
|
||||||
@TestMetadata("compiler/testData/codegen/boxInline/varargs")
|
@TestMetadata("compiler/testData/codegen/boxInline/varargs")
|
||||||
@TestDataPath("$PROJECT_ROOT")
|
@TestDataPath("$PROJECT_ROOT")
|
||||||
|
|||||||
Generated
+46
@@ -5093,6 +5093,52 @@ public class K1WasmCodegenBoxInlineTestGenerated extends AbstractK1WasmCodegenBo
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Nested
|
||||||
|
@TestMetadata("compiler/testData/codegen/boxInline/typeParameters")
|
||||||
|
@TestDataPath("$PROJECT_ROOT")
|
||||||
|
public class TypeParameters {
|
||||||
|
@Test
|
||||||
|
public void testAllFilesPresentInTypeParameters() throws Exception {
|
||||||
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/typeParameters"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.WASM, true);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("anonymousObject.kt")
|
||||||
|
public void testAnonymousObject() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/boxInline/typeParameters/anonymousObject.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("basic.kt")
|
||||||
|
public void testBasic() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/boxInline/typeParameters/basic.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("projectionTypeArguments.kt")
|
||||||
|
public void testProjectionTypeArguments() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/boxInline/typeParameters/projectionTypeArguments.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("severalUpperBounds.kt")
|
||||||
|
public void testSeveralUpperBounds() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/boxInline/typeParameters/severalUpperBounds.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("typeArgFromGenericBaseClass.kt")
|
||||||
|
public void testTypeArgFromGenericBaseClass() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/boxInline/typeParameters/typeArgFromGenericBaseClass.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("uncheckedCastToNothing.kt")
|
||||||
|
public void testUncheckedCastToNothing() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/boxInline/typeParameters/uncheckedCastToNothing.kt");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@Nested
|
@Nested
|
||||||
@TestMetadata("compiler/testData/codegen/boxInline/varargs")
|
@TestMetadata("compiler/testData/codegen/boxInline/varargs")
|
||||||
@TestDataPath("$PROJECT_ROOT")
|
@TestDataPath("$PROJECT_ROOT")
|
||||||
|
|||||||
Reference in New Issue
Block a user