Tests: minor, remove obsolete diagnostic tests
- `require.kt` was added to check JVM accidental override diagnostic when using the "traits with required classes" feature, which was removed a long time ago. - `withErrorTypes.kt` was testing conflicting JVM declarations error (a backend diagnostic) in presence of error types -- not very useful scenario because the backend is not run when there's a frontend error.
This commit is contained in:
committed by
Space Team
parent
f7f779df53
commit
5be1ff1d5f
-12
@@ -11959,12 +11959,6 @@ public class DiagnosticCompilerTestFE10TestdataTestGenerated extends AbstractDia
|
|||||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/accidentalOverrides/privateClassFunctionOverriddenByProperty.kt");
|
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/accidentalOverrides/privateClassFunctionOverriddenByProperty.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
|
||||||
@TestMetadata("require.kt")
|
|
||||||
public void testRequire() {
|
|
||||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/accidentalOverrides/require.kt");
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("traitFunctionOverriddenByProperty.kt")
|
@TestMetadata("traitFunctionOverriddenByProperty.kt")
|
||||||
public void testTraitFunctionOverriddenByProperty() {
|
public void testTraitFunctionOverriddenByProperty() {
|
||||||
@@ -12268,12 +12262,6 @@ public class DiagnosticCompilerTestFE10TestdataTestGenerated extends AbstractDia
|
|||||||
public void testTrait() {
|
public void testTrait() {
|
||||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/functionAndProperty/trait.kt");
|
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/functionAndProperty/trait.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
|
||||||
@TestMetadata("withErrorTypes.kt")
|
|
||||||
public void testWithErrorTypes() {
|
|
||||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/functionAndProperty/withErrorTypes.kt");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Nested
|
@Nested
|
||||||
|
|||||||
-12
@@ -11959,12 +11959,6 @@ public class LLFirPreresolvedReversedDiagnosticCompilerFE10TestDataTestGenerated
|
|||||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/accidentalOverrides/privateClassFunctionOverriddenByProperty.kt");
|
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/accidentalOverrides/privateClassFunctionOverriddenByProperty.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
|
||||||
@TestMetadata("require.kt")
|
|
||||||
public void testRequire() {
|
|
||||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/accidentalOverrides/require.kt");
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("traitFunctionOverriddenByProperty.kt")
|
@TestMetadata("traitFunctionOverriddenByProperty.kt")
|
||||||
public void testTraitFunctionOverriddenByProperty() {
|
public void testTraitFunctionOverriddenByProperty() {
|
||||||
@@ -12268,12 +12262,6 @@ public class LLFirPreresolvedReversedDiagnosticCompilerFE10TestDataTestGenerated
|
|||||||
public void testTrait() {
|
public void testTrait() {
|
||||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/functionAndProperty/trait.kt");
|
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/functionAndProperty/trait.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
|
||||||
@TestMetadata("withErrorTypes.kt")
|
|
||||||
public void testWithErrorTypes() {
|
|
||||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/functionAndProperty/withErrorTypes.kt");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Nested
|
@Nested
|
||||||
|
|||||||
-12
@@ -11953,12 +11953,6 @@ public class FirLightTreeOldFrontendDiagnosticsTestGenerated extends AbstractFir
|
|||||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/accidentalOverrides/privateClassFunctionOverriddenByProperty.kt");
|
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/accidentalOverrides/privateClassFunctionOverriddenByProperty.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
|
||||||
@TestMetadata("require.kt")
|
|
||||||
public void testRequire() {
|
|
||||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/accidentalOverrides/require.kt");
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("traitFunctionOverriddenByProperty.kt")
|
@TestMetadata("traitFunctionOverriddenByProperty.kt")
|
||||||
public void testTraitFunctionOverriddenByProperty() {
|
public void testTraitFunctionOverriddenByProperty() {
|
||||||
@@ -12262,12 +12256,6 @@ public class FirLightTreeOldFrontendDiagnosticsTestGenerated extends AbstractFir
|
|||||||
public void testTrait() {
|
public void testTrait() {
|
||||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/functionAndProperty/trait.kt");
|
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/functionAndProperty/trait.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
|
||||||
@TestMetadata("withErrorTypes.kt")
|
|
||||||
public void testWithErrorTypes() {
|
|
||||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/functionAndProperty/withErrorTypes.kt");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Nested
|
@Nested
|
||||||
|
|||||||
-12
@@ -11959,12 +11959,6 @@ public class FirPsiOldFrontendDiagnosticsTestGenerated extends AbstractFirPsiDia
|
|||||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/accidentalOverrides/privateClassFunctionOverriddenByProperty.kt");
|
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/accidentalOverrides/privateClassFunctionOverriddenByProperty.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
|
||||||
@TestMetadata("require.kt")
|
|
||||||
public void testRequire() {
|
|
||||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/accidentalOverrides/require.kt");
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("traitFunctionOverriddenByProperty.kt")
|
@TestMetadata("traitFunctionOverriddenByProperty.kt")
|
||||||
public void testTraitFunctionOverriddenByProperty() {
|
public void testTraitFunctionOverriddenByProperty() {
|
||||||
@@ -12268,12 +12262,6 @@ public class FirPsiOldFrontendDiagnosticsTestGenerated extends AbstractFirPsiDia
|
|||||||
public void testTrait() {
|
public void testTrait() {
|
||||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/functionAndProperty/trait.kt");
|
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/functionAndProperty/trait.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
|
||||||
@TestMetadata("withErrorTypes.kt")
|
|
||||||
public void testWithErrorTypes() {
|
|
||||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/functionAndProperty/withErrorTypes.kt");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Nested
|
@Nested
|
||||||
|
|||||||
Vendored
-7
@@ -1,7 +0,0 @@
|
|||||||
open class C {
|
|
||||||
val x = 1
|
|
||||||
}
|
|
||||||
|
|
||||||
interface Tr : <!INTERFACE_WITH_SUPERCLASS!>C<!> {
|
|
||||||
fun getX() = 1
|
|
||||||
}
|
|
||||||
-7
@@ -1,7 +0,0 @@
|
|||||||
open class C {
|
|
||||||
val x = 1
|
|
||||||
}
|
|
||||||
|
|
||||||
interface Tr : <!INTERFACE_WITH_SUPERCLASS!>C<!> {
|
|
||||||
<!ACCIDENTAL_OVERRIDE!>fun getX()<!> = 1
|
|
||||||
}
|
|
||||||
-17
@@ -1,17 +0,0 @@
|
|||||||
package
|
|
||||||
|
|
||||||
public open class C {
|
|
||||||
public constructor C()
|
|
||||||
public final val x: kotlin.Int = 1
|
|
||||||
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 Tr : C {
|
|
||||||
public final override /*1*/ /*fake_override*/ val x: kotlin.Int
|
|
||||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
|
||||||
public open fun getX(): kotlin.Int
|
|
||||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
|
||||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
|
||||||
}
|
|
||||||
Vendored
-4
@@ -1,4 +0,0 @@
|
|||||||
interface T {
|
|
||||||
val x: <!UNRESOLVED_REFERENCE!>ErrorType<!>
|
|
||||||
fun getX(): <!UNRESOLVED_REFERENCE!>ErrorType1<!>
|
|
||||||
}
|
|
||||||
Vendored
-4
@@ -1,4 +0,0 @@
|
|||||||
interface T {
|
|
||||||
<!CONFLICTING_JVM_DECLARATIONS!>val x: <!UNRESOLVED_REFERENCE!>ErrorType<!><!>
|
|
||||||
<!CONFLICTING_JVM_DECLARATIONS!>fun getX(): <!UNRESOLVED_REFERENCE!>ErrorType1<!><!>
|
|
||||||
}
|
|
||||||
Vendored
-9
@@ -1,9 +0,0 @@
|
|||||||
package
|
|
||||||
|
|
||||||
public interface T {
|
|
||||||
public abstract val x: [Error type: Unresolved type for ErrorType]
|
|
||||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
|
||||||
public abstract fun getX(): [Error type: Unresolved type for ErrorType1]
|
|
||||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
|
||||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
|
||||||
}
|
|
||||||
Generated
-12
@@ -11959,12 +11959,6 @@ public class DiagnosticTestGenerated extends AbstractDiagnosticTest {
|
|||||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/accidentalOverrides/privateClassFunctionOverriddenByProperty.kt");
|
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/accidentalOverrides/privateClassFunctionOverriddenByProperty.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
|
||||||
@TestMetadata("require.kt")
|
|
||||||
public void testRequire() {
|
|
||||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/accidentalOverrides/require.kt");
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("traitFunctionOverriddenByProperty.kt")
|
@TestMetadata("traitFunctionOverriddenByProperty.kt")
|
||||||
public void testTraitFunctionOverriddenByProperty() {
|
public void testTraitFunctionOverriddenByProperty() {
|
||||||
@@ -12268,12 +12262,6 @@ public class DiagnosticTestGenerated extends AbstractDiagnosticTest {
|
|||||||
public void testTrait() {
|
public void testTrait() {
|
||||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/functionAndProperty/trait.kt");
|
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/functionAndProperty/trait.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
|
||||||
@TestMetadata("withErrorTypes.kt")
|
|
||||||
public void testWithErrorTypes() {
|
|
||||||
runTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/functionAndProperty/withErrorTypes.kt");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Nested
|
@Nested
|
||||||
|
|||||||
Reference in New Issue
Block a user