[FE1.0] Fix false reporting of non-matching annotations in IDE...

...when typealiased expect class used in class literal.

^KTIJ-26700 Fixed
This commit is contained in:
Roman Efremov
2023-08-23 10:49:22 +02:00
committed by Space Team
parent 3124cbcbad
commit 6b217369a8
6 changed files with 64 additions and 9 deletions
@@ -0,0 +1,23 @@
// FIR_IDENTICAL
// WITH_STDLIB
// MODULE: common
expect class Typealiased
annotation class Ann(val p: kotlin.reflect.KClass<*>)
@Ann(Typealiased::class)
expect fun test()
@Ann(Array<Typealiased>::class)
expect fun testInArray()
// MODULE: main()()(common)
class TypealiasedImpl
actual typealias Typealiased = TypealiasedImpl
@Ann(Typealiased::class)
actual fun test() {}
@Ann(Array<Typealiased>::class)
actual fun testInArray() {}