[Tests] Add tests for other checkers having same problem with
...nested classes marching. ^KT-31636
This commit is contained in:
committed by
Space Team
parent
bfc775faf5
commit
a768ece70d
+12
@@ -24219,6 +24219,12 @@ public class DiagnosticCompilerTestFE10TestdataTestGenerated extends AbstractDia
|
||||
runTest("compiler/testData/diagnostics/tests/multiplatform/actualAnnotationsNotMatchExpect/kotlinAnaloguesForJavaAnnotations.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("nestedAnnotationClassViaActualTypeAlias.kt")
|
||||
public void testNestedAnnotationClassViaActualTypeAlias() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/multiplatform/actualAnnotationsNotMatchExpect/nestedAnnotationClassViaActualTypeAlias.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("repeatableNoArg.kt")
|
||||
public void testRepeatableNoArg() throws Exception {
|
||||
@@ -24777,6 +24783,12 @@ public class DiagnosticCompilerTestFE10TestdataTestGenerated extends AbstractDia
|
||||
runTest("compiler/testData/diagnostics/tests/multiplatform/defaultArguments/annotationArgumentEquality.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("annotationDefaultArgKclassWithNestedClassViaActualTypeAlias.kt")
|
||||
public void testAnnotationDefaultArgKclassWithNestedClassViaActualTypeAlias() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/multiplatform/defaultArguments/annotationDefaultArgKclassWithNestedClassViaActualTypeAlias.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("annotations.kt")
|
||||
public void testAnnotations() throws Exception {
|
||||
|
||||
+12
@@ -24219,6 +24219,12 @@ public class LLFirPreresolvedReversedDiagnosticCompilerFE10TestDataTestGenerated
|
||||
runTest("compiler/testData/diagnostics/tests/multiplatform/actualAnnotationsNotMatchExpect/kotlinAnaloguesForJavaAnnotations.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("nestedAnnotationClassViaActualTypeAlias.kt")
|
||||
public void testNestedAnnotationClassViaActualTypeAlias() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/multiplatform/actualAnnotationsNotMatchExpect/nestedAnnotationClassViaActualTypeAlias.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("repeatableNoArg.kt")
|
||||
public void testRepeatableNoArg() throws Exception {
|
||||
@@ -24777,6 +24783,12 @@ public class LLFirPreresolvedReversedDiagnosticCompilerFE10TestDataTestGenerated
|
||||
runTest("compiler/testData/diagnostics/tests/multiplatform/defaultArguments/annotationArgumentEquality.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("annotationDefaultArgKclassWithNestedClassViaActualTypeAlias.kt")
|
||||
public void testAnnotationDefaultArgKclassWithNestedClassViaActualTypeAlias() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/multiplatform/defaultArguments/annotationDefaultArgKclassWithNestedClassViaActualTypeAlias.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("annotations.kt")
|
||||
public void testAnnotations() throws Exception {
|
||||
|
||||
+12
@@ -580,6 +580,12 @@ public class FirOldFrontendMPPDiagnosticsWithLightTreeTestGenerated extends Abst
|
||||
runTest("compiler/testData/diagnostics/tests/multiplatform/actualAnnotationsNotMatchExpect/kotlinAnaloguesForJavaAnnotations.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("nestedAnnotationClassViaActualTypeAlias.kt")
|
||||
public void testNestedAnnotationClassViaActualTypeAlias() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/multiplatform/actualAnnotationsNotMatchExpect/nestedAnnotationClassViaActualTypeAlias.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("repeatableNoArg.kt")
|
||||
public void testRepeatableNoArg() throws Exception {
|
||||
@@ -1138,6 +1144,12 @@ public class FirOldFrontendMPPDiagnosticsWithLightTreeTestGenerated extends Abst
|
||||
runTest("compiler/testData/diagnostics/tests/multiplatform/defaultArguments/annotationArgumentEquality.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("annotationDefaultArgKclassWithNestedClassViaActualTypeAlias.kt")
|
||||
public void testAnnotationDefaultArgKclassWithNestedClassViaActualTypeAlias() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/multiplatform/defaultArguments/annotationDefaultArgKclassWithNestedClassViaActualTypeAlias.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("annotations.kt")
|
||||
public void testAnnotations() throws Exception {
|
||||
|
||||
+12
@@ -580,6 +580,12 @@ public class FirOldFrontendMPPDiagnosticsWithPsiTestGenerated extends AbstractFi
|
||||
runTest("compiler/testData/diagnostics/tests/multiplatform/actualAnnotationsNotMatchExpect/kotlinAnaloguesForJavaAnnotations.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("nestedAnnotationClassViaActualTypeAlias.kt")
|
||||
public void testNestedAnnotationClassViaActualTypeAlias() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/multiplatform/actualAnnotationsNotMatchExpect/nestedAnnotationClassViaActualTypeAlias.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("repeatableNoArg.kt")
|
||||
public void testRepeatableNoArg() throws Exception {
|
||||
@@ -1138,6 +1144,12 @@ public class FirOldFrontendMPPDiagnosticsWithPsiTestGenerated extends AbstractFi
|
||||
runTest("compiler/testData/diagnostics/tests/multiplatform/defaultArguments/annotationArgumentEquality.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("annotationDefaultArgKclassWithNestedClassViaActualTypeAlias.kt")
|
||||
public void testAnnotationDefaultArgKclassWithNestedClassViaActualTypeAlias() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/multiplatform/defaultArguments/annotationDefaultArgKclassWithNestedClassViaActualTypeAlias.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("annotations.kt")
|
||||
public void testAnnotations() throws Exception {
|
||||
|
||||
+20
@@ -0,0 +1,20 @@
|
||||
// MODULE: m1-common
|
||||
// FILE: common.kt
|
||||
|
||||
expect annotation class Ann() {
|
||||
annotation class Nested()
|
||||
}
|
||||
|
||||
@Ann.Nested
|
||||
expect fun foo()
|
||||
|
||||
// MODULE: m1-jvm()()(m1-common)
|
||||
// FILE: jvm.kt
|
||||
annotation class AnnImpl {
|
||||
annotation class Nested
|
||||
}
|
||||
|
||||
actual typealias <!NO_ACTUAL_CLASS_MEMBER_FOR_EXPECTED_CLASS!>Ann<!> = AnnImpl
|
||||
|
||||
<!ACTUAL_ANNOTATIONS_NOT_MATCH_EXPECT!>@AnnImpl.Nested
|
||||
actual fun <!ACTUAL_ANNOTATIONS_NOT_MATCH_EXPECT!>foo<!>() {}<!>
|
||||
+20
@@ -0,0 +1,20 @@
|
||||
// MODULE: m1-common
|
||||
// FILE: common.kt
|
||||
|
||||
expect annotation class Ann() {
|
||||
annotation class Nested()
|
||||
}
|
||||
|
||||
@Ann.<!UNRESOLVED_REFERENCE{JVM}!>Nested<!>
|
||||
expect fun foo()
|
||||
|
||||
// MODULE: m1-jvm()()(m1-common)
|
||||
// FILE: jvm.kt
|
||||
annotation class AnnImpl {
|
||||
annotation class Nested
|
||||
}
|
||||
|
||||
actual typealias <!NO_ACTUAL_CLASS_MEMBER_FOR_EXPECTED_CLASS!>Ann<!> = AnnImpl
|
||||
|
||||
@AnnImpl.Nested
|
||||
actual fun foo() {}
|
||||
+20
@@ -0,0 +1,20 @@
|
||||
// MODULE: m1-common
|
||||
// FILE: common.kt
|
||||
|
||||
expect annotation class Ann() {
|
||||
annotation class Nested()
|
||||
}
|
||||
|
||||
@Ann.Nested
|
||||
expect fun foo()
|
||||
|
||||
// MODULE: m1-jvm()()(m1-common)
|
||||
// FILE: jvm.kt
|
||||
annotation class AnnImpl {
|
||||
annotation class Nested
|
||||
}
|
||||
|
||||
actual typealias <!NO_ACTUAL_CLASS_MEMBER_FOR_EXPECTED_CLASS!>Ann<!> = AnnImpl
|
||||
|
||||
@AnnImpl.Nested
|
||||
actual fun <!ACTUAL_ANNOTATIONS_NOT_MATCH_EXPECT!>foo<!>() {}
|
||||
+27
@@ -0,0 +1,27 @@
|
||||
// MODULE: m1-common
|
||||
// FILE: common.kt
|
||||
|
||||
import kotlin.reflect.KClass
|
||||
|
||||
expect annotation class Ann(
|
||||
val p: KClass<*> = Foo.Nested::class
|
||||
)
|
||||
|
||||
expect class Foo {
|
||||
class Nested
|
||||
}
|
||||
|
||||
// MODULE: m2-jvm()()(m1-common)
|
||||
// FILE: jvm.kt
|
||||
|
||||
import kotlin.reflect.KClass
|
||||
|
||||
class FooImpl {
|
||||
class Nested
|
||||
}
|
||||
|
||||
actual typealias Foo = FooImpl
|
||||
|
||||
actual annotation class Ann(
|
||||
actual val p: KClass<*> = <!ACTUAL_ANNOTATION_CONFLICTING_DEFAULT_ARGUMENT_VALUE!>FooImpl.Nested::class<!>
|
||||
)
|
||||
+27
@@ -0,0 +1,27 @@
|
||||
// MODULE: m1-common
|
||||
// FILE: common.kt
|
||||
|
||||
import kotlin.reflect.KClass
|
||||
|
||||
expect annotation class Ann(
|
||||
val p: KClass<*> = <!ANNOTATION_PARAMETER_DEFAULT_VALUE_MUST_BE_CONSTANT{JVM}!>Foo.<!UNRESOLVED_REFERENCE{JVM}!>Nested<!>::class<!>
|
||||
)
|
||||
|
||||
expect class Foo {
|
||||
class Nested
|
||||
}
|
||||
|
||||
// MODULE: m2-jvm()()(m1-common)
|
||||
// FILE: jvm.kt
|
||||
|
||||
import kotlin.reflect.KClass
|
||||
|
||||
class FooImpl {
|
||||
class Nested
|
||||
}
|
||||
|
||||
actual typealias Foo = FooImpl
|
||||
|
||||
actual annotation class Ann(
|
||||
actual val p: KClass<*> = <!ACTUAL_ANNOTATION_CONFLICTING_DEFAULT_ARGUMENT_VALUE!>FooImpl.Nested::class<!>
|
||||
)
|
||||
+27
@@ -0,0 +1,27 @@
|
||||
// MODULE: m1-common
|
||||
// FILE: common.kt
|
||||
|
||||
import kotlin.reflect.KClass
|
||||
|
||||
expect annotation class Ann(
|
||||
val p: KClass<*> = Foo.Nested::class
|
||||
)
|
||||
|
||||
expect class Foo {
|
||||
class Nested
|
||||
}
|
||||
|
||||
// MODULE: m2-jvm()()(m1-common)
|
||||
// FILE: jvm.kt
|
||||
|
||||
import kotlin.reflect.KClass
|
||||
|
||||
class FooImpl {
|
||||
class Nested
|
||||
}
|
||||
|
||||
actual typealias Foo = FooImpl
|
||||
|
||||
actual annotation class Ann(
|
||||
actual val p: KClass<*> = FooImpl.Nested::class
|
||||
)
|
||||
Generated
+12
@@ -24219,6 +24219,12 @@ public class DiagnosticTestGenerated extends AbstractDiagnosticTest {
|
||||
runTest("compiler/testData/diagnostics/tests/multiplatform/actualAnnotationsNotMatchExpect/kotlinAnaloguesForJavaAnnotations.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("nestedAnnotationClassViaActualTypeAlias.kt")
|
||||
public void testNestedAnnotationClassViaActualTypeAlias() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/multiplatform/actualAnnotationsNotMatchExpect/nestedAnnotationClassViaActualTypeAlias.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("repeatableNoArg.kt")
|
||||
public void testRepeatableNoArg() throws Exception {
|
||||
@@ -24777,6 +24783,12 @@ public class DiagnosticTestGenerated extends AbstractDiagnosticTest {
|
||||
runTest("compiler/testData/diagnostics/tests/multiplatform/defaultArguments/annotationArgumentEquality.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("annotationDefaultArgKclassWithNestedClassViaActualTypeAlias.kt")
|
||||
public void testAnnotationDefaultArgKclassWithNestedClassViaActualTypeAlias() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/multiplatform/defaultArguments/annotationDefaultArgKclassWithNestedClassViaActualTypeAlias.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("annotations.kt")
|
||||
public void testAnnotations() throws Exception {
|
||||
|
||||
Reference in New Issue
Block a user