Remove codegen tests on inline classes based on type parameters
According to KT-23819, such inline classes are prohibited. These tests can be restored (and fixed if needed) as soon as we allow this back
This commit is contained in:
Vendored
-44
@@ -1,44 +0,0 @@
|
||||
// !LANGUAGE: +InlineClasses
|
||||
|
||||
@Suppress("INLINE_CLASS_HAS_INAPPLICABLE_PARAMETER_TYPE")
|
||||
inline class Default<T>(val x: T)
|
||||
|
||||
class Inv<T>
|
||||
|
||||
object Test {
|
||||
fun withNotNullPrimitive(a: Default<Int>) {}
|
||||
fun withAdditionalGenericParameter(x: Inv<String>, y: Default<String>) {}
|
||||
|
||||
fun asNullable(a: Default<Int>?) {}
|
||||
|
||||
fun asNullableTypeArgument(a: Default<Int?>) {}
|
||||
fun asNullableAndNullableTypeArgument(a: Default<Int?>?) {}
|
||||
}
|
||||
|
||||
// method: Test::withNotNullPrimitive-jBNXRxo
|
||||
// jvm signature: (I)V
|
||||
// generic signature: null
|
||||
|
||||
// method: Test::withAdditionalGenericParameter-HGK7qdE
|
||||
// jvm signature: (LInv;Ljava/lang/String;)V
|
||||
// generic signature: (LInv<Ljava/lang/String;>;Ljava/lang/String;)V
|
||||
|
||||
// method: Test::asNullable-wrrn6tY
|
||||
// jvm signature: (LDefault;)V
|
||||
// generic signature: (LDefault<Ljava/lang/Integer;>;)V
|
||||
|
||||
// method: Test::asNullableTypeArgument-jBNXRxo
|
||||
// jvm signature: (Ljava/lang/Integer;)V
|
||||
// generic signature: null
|
||||
|
||||
// method: Test::asNullableAndNullableTypeArgument-wrrn6tY
|
||||
// jvm signature: (LDefault;)V
|
||||
// generic signature: (LDefault<Ljava/lang/Integer;>;)V
|
||||
|
||||
// method: Default:box
|
||||
// jvm signature: (Ljava/lang/Object;)LDefault;
|
||||
// generic signature: null
|
||||
|
||||
// method: Default:unbox
|
||||
// jvm signature: ()Ljava/lang/Object
|
||||
// generic signature: null
|
||||
Vendored
-31
@@ -1,31 +0,0 @@
|
||||
// !LANGUAGE: +InlineClasses
|
||||
|
||||
@Suppress("INLINE_CLASS_HAS_INAPPLICABLE_PARAMETER_TYPE")
|
||||
inline class NonNull<T : Any>(val x: T)
|
||||
|
||||
@Suppress("INLINE_CLASS_HAS_INAPPLICABLE_PARAMETER_TYPE")
|
||||
inline class NullableValue<T : Any>(val x: T?)
|
||||
|
||||
object Test {
|
||||
fun withNotNullPrimitive(a: NonNull<Int>) {}
|
||||
fun asNullable(a: NonNull<Int>?) {}
|
||||
|
||||
fun withNotNullForNullableValue(a: NullableValue<Int>) {}
|
||||
fun asNullableForNullableValue(a: NullableValue<Int>?) {}
|
||||
}
|
||||
|
||||
// method: Test::withNotNullPrimitive-inxE8tU
|
||||
// jvm signature: (I)V
|
||||
// generic signature: null
|
||||
|
||||
// method: Test::asNullable-UczwCtY
|
||||
// jvm signature: (LNonNull;)V
|
||||
// generic signature: (LNonNull<Ljava/lang/Integer;>;)V
|
||||
|
||||
// method: Test::withNotNullForNullableValue-3nNnbBk
|
||||
// jvm signature: (Ljava/lang/Integer;)V
|
||||
// generic signature: null
|
||||
|
||||
// method: Test::asNullableForNullableValue-wXDnar0
|
||||
// jvm signature: (LNullableValue;)V
|
||||
// generic signature: (LNullableValue<Ljava/lang/Integer;>;)V
|
||||
-10
@@ -532,16 +532,6 @@ public class IrWriteSignatureTestGenerated extends AbstractIrWriteSignatureTest
|
||||
runTest("compiler/testData/writeSignature/inlineClasses/genericInlineClassBasedOnGenericType.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("genericInlineClassWithDefaultTypeParameter.kt")
|
||||
public void testGenericInlineClassWithDefaultTypeParameter() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/inlineClasses/genericInlineClassWithDefaultTypeParameter.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("genericInlineClassWithNotNullTypeParameter.kt")
|
||||
public void testGenericInlineClassWithNotNullTypeParameter() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/inlineClasses/genericInlineClassWithNotNullTypeParameter.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("genericMethodInsideClass.kt")
|
||||
public void testGenericMethodInsideClass() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/inlineClasses/genericMethodInsideClass.kt");
|
||||
|
||||
-10
@@ -532,16 +532,6 @@ public class WriteSignatureTestGenerated extends AbstractWriteSignatureTest {
|
||||
runTest("compiler/testData/writeSignature/inlineClasses/genericInlineClassBasedOnGenericType.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("genericInlineClassWithDefaultTypeParameter.kt")
|
||||
public void testGenericInlineClassWithDefaultTypeParameter() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/inlineClasses/genericInlineClassWithDefaultTypeParameter.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("genericInlineClassWithNotNullTypeParameter.kt")
|
||||
public void testGenericInlineClassWithNotNullTypeParameter() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/inlineClasses/genericInlineClassWithNotNullTypeParameter.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("genericMethodInsideClass.kt")
|
||||
public void testGenericMethodInsideClass() throws Exception {
|
||||
runTest("compiler/testData/writeSignature/inlineClasses/genericMethodInsideClass.kt");
|
||||
|
||||
Reference in New Issue
Block a user