[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:
committed by
Space Team
parent
3124cbcbad
commit
6b217369a8
+23
@@ -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() {}
|
||||
Reference in New Issue
Block a user