[TD] Remove some outdated tests with unsupported EXPLICIT_FLEXIBLE directive
This commit is contained in:
-8
@@ -1,8 +0,0 @@
|
||||
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
||||
// !EXPLICIT_FLEXIBLE_TYPES
|
||||
// !CHECK_TYPE
|
||||
|
||||
fun foo(f: ft<Int, Int?>) {
|
||||
f.checkType { <!INAPPLICABLE_CANDIDATE!>_<!><Int>() }
|
||||
f.checkType { <!INAPPLICABLE_CANDIDATE!>_<!><Int?>() }
|
||||
}
|
||||
-8
@@ -1,8 +0,0 @@
|
||||
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
||||
// !EXPLICIT_FLEXIBLE_TYPES
|
||||
// !CHECK_TYPE
|
||||
|
||||
fun foo(f: ft<Int, Int?>) {
|
||||
f.checkType { _<Int>() }
|
||||
f.checkType { _<Int?>() }
|
||||
}
|
||||
-3
@@ -1,3 +0,0 @@
|
||||
package
|
||||
|
||||
public fun foo(/*0*/ f: kotlin.Int!): kotlin.Unit
|
||||
-12
@@ -1,12 +0,0 @@
|
||||
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
||||
// !EXPLICIT_FLEXIBLE_TYPES
|
||||
// !CHECK_TYPE
|
||||
package ppp
|
||||
|
||||
import checkType
|
||||
import _
|
||||
|
||||
fun foo(f: ft<Int, Int?>) {
|
||||
f.checkType { <!INAPPLICABLE_CANDIDATE!>_<!><Int>() }
|
||||
f.checkType { <!INAPPLICABLE_CANDIDATE!>_<!><Int?>() }
|
||||
}
|
||||
-12
@@ -1,12 +0,0 @@
|
||||
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
||||
// !EXPLICIT_FLEXIBLE_TYPES
|
||||
// !CHECK_TYPE
|
||||
package ppp
|
||||
|
||||
import checkType
|
||||
import _
|
||||
|
||||
fun foo(f: ft<Int, Int?>) {
|
||||
f.checkType { _<Int>() }
|
||||
f.checkType { _<Int?>() }
|
||||
}
|
||||
-5
@@ -1,5 +0,0 @@
|
||||
package
|
||||
|
||||
package ppp {
|
||||
public fun foo(/*0*/ f: kotlin.Int!): kotlin.Unit
|
||||
}
|
||||
@@ -1,13 +0,0 @@
|
||||
// FIR_IDENTICAL
|
||||
// !CHECK_TYPE
|
||||
// !EXPLICIT_FLEXIBLE_TYPES
|
||||
|
||||
fun foo(
|
||||
p1: ft<MutableMap<Int, String>, Map<Int, String>?>,
|
||||
p2: Map<Int, String>
|
||||
) = p1 == p2
|
||||
|
||||
fun foo(
|
||||
p1: ft<String, String?>,
|
||||
p2: String
|
||||
) = p1 == p2
|
||||
@@ -1,4 +0,0 @@
|
||||
package
|
||||
|
||||
public fun foo(/*0*/ p1: kotlin.String!, /*1*/ p2: kotlin.String): kotlin.Boolean
|
||||
public fun foo(/*0*/ p1: kotlin.collections.(Mutable)Map<kotlin.Int, kotlin.String>!, /*1*/ p2: kotlin.collections.Map<kotlin.Int, kotlin.String>): kotlin.Boolean
|
||||
-13
@@ -1,13 +0,0 @@
|
||||
// !EXPLICIT_FLEXIBLE_TYPES
|
||||
|
||||
interface A<T>
|
||||
interface B<T>: A<ft<T, T?>>
|
||||
|
||||
interface C: A<String>, B<String>
|
||||
interface D: B<String>, A<String>
|
||||
interface E: A<String?>, B<String?>
|
||||
interface F: A<String?>, B<String>
|
||||
|
||||
interface G: A<String>, B<String?>
|
||||
interface H: A<Int>, B<String>
|
||||
interface I: B<Int>, A<String>
|
||||
-13
@@ -1,13 +0,0 @@
|
||||
// !EXPLICIT_FLEXIBLE_TYPES
|
||||
|
||||
interface A<T>
|
||||
interface B<T>: A<ft<T, T?>>
|
||||
|
||||
interface C: A<String>, B<String>
|
||||
interface D: B<String>, A<String>
|
||||
interface E: A<String?>, B<String?>
|
||||
interface F: A<String?>, B<String>
|
||||
|
||||
interface G: <!INCONSISTENT_TYPE_PARAMETER_VALUES!>A<String>, B<String?><!>
|
||||
interface H: <!INCONSISTENT_TYPE_PARAMETER_VALUES!>A<Int>, B<String><!>
|
||||
interface I: <!INCONSISTENT_TYPE_PARAMETER_VALUES!>B<Int>, A<String><!>
|
||||
-55
@@ -1,55 +0,0 @@
|
||||
package
|
||||
|
||||
public interface A</*0*/ T> {
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
public interface B</*0*/ T> : A<T!> {
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
public interface C : A<kotlin.String>, B<kotlin.String> {
|
||||
public open override /*2*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public open override /*2*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*2*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
public interface D : B<kotlin.String>, A<kotlin.String> {
|
||||
public open override /*2*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public open override /*2*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*2*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
public interface E : A<kotlin.String?>, B<kotlin.String?> {
|
||||
public open override /*2*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public open override /*2*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*2*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
public interface F : A<kotlin.String?>, B<kotlin.String> {
|
||||
public open override /*2*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public open override /*2*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*2*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
public interface G : A<kotlin.String>, B<kotlin.String?> {
|
||||
public open override /*2*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public open override /*2*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*2*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
public interface H : A<kotlin.Int>, B<kotlin.String> {
|
||||
public open override /*2*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public open override /*2*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*2*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
public interface I : B<kotlin.Int>, A<kotlin.String> {
|
||||
public open override /*2*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public open override /*2*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*2*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
Generated
-34
@@ -19573,18 +19573,6 @@ public class DiagnosticTestGenerated extends AbstractDiagnosticTest {
|
||||
runTest("compiler/testData/diagnostics/tests/platformTypes/elvis.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("explicitFlexibleNoPackage.kt")
|
||||
public void testExplicitFlexibleNoPackage() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/platformTypes/explicitFlexibleNoPackage.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("explicitFlexibleWithPackage.kt")
|
||||
public void testExplicitFlexibleWithPackage() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/platformTypes/explicitFlexibleWithPackage.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("getParentOfType.kt")
|
||||
public void testGetParentOfType() throws Exception {
|
||||
@@ -19663,12 +19651,6 @@ public class DiagnosticTestGenerated extends AbstractDiagnosticTest {
|
||||
runTest("compiler/testData/diagnostics/tests/platformTypes/samConstructor.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("supertypeArgumentsExplicit.kt")
|
||||
public void testSupertypeArgumentsExplicit() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/platformTypes/supertypeArgumentsExplicit.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("supertypeTypeArguments.kt")
|
||||
public void testSupertypeTypeArguments() throws Exception {
|
||||
@@ -19791,22 +19773,6 @@ public class DiagnosticTestGenerated extends AbstractDiagnosticTest {
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/diagnostics/tests/platformTypes/intersection")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class Intersection extends AbstractDiagnosticTest {
|
||||
@Test
|
||||
public void testAllFilesPresentInIntersection() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/tests/platformTypes/intersection"), Pattern.compile("^(.*)\\.kts?$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("map.kt")
|
||||
public void testMap() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/platformTypes/intersection/map.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/diagnostics/tests/platformTypes/methodCall")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
|
||||
-34
@@ -19567,18 +19567,6 @@ public class FirOldFrontendDiagnosticsTestGenerated extends AbstractFirDiagnosti
|
||||
runTest("compiler/testData/diagnostics/tests/platformTypes/elvis.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("explicitFlexibleNoPackage.kt")
|
||||
public void testExplicitFlexibleNoPackage() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/platformTypes/explicitFlexibleNoPackage.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("explicitFlexibleWithPackage.kt")
|
||||
public void testExplicitFlexibleWithPackage() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/platformTypes/explicitFlexibleWithPackage.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("getParentOfType.kt")
|
||||
public void testGetParentOfType() throws Exception {
|
||||
@@ -19657,12 +19645,6 @@ public class FirOldFrontendDiagnosticsTestGenerated extends AbstractFirDiagnosti
|
||||
runTest("compiler/testData/diagnostics/tests/platformTypes/samConstructor.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("supertypeArgumentsExplicit.kt")
|
||||
public void testSupertypeArgumentsExplicit() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/platformTypes/supertypeArgumentsExplicit.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("supertypeTypeArguments.kt")
|
||||
public void testSupertypeTypeArguments() throws Exception {
|
||||
@@ -19785,22 +19767,6 @@ public class FirOldFrontendDiagnosticsTestGenerated extends AbstractFirDiagnosti
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/diagnostics/tests/platformTypes/intersection")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class Intersection extends AbstractFirDiagnosticTest {
|
||||
@Test
|
||||
public void testAllFilesPresentInIntersection() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/tests/platformTypes/intersection"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("map.kt")
|
||||
public void testMap() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/platformTypes/intersection/map.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/diagnostics/tests/platformTypes/methodCall")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
|
||||
Reference in New Issue
Block a user