[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
+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
|
||||
)
|
||||
Reference in New Issue
Block a user