psi2ir: Support class literals in annotations

This commit is contained in:
Dmitry Petrov
2018-05-22 12:48:06 +03:00
parent e7f6ac1e50
commit 8dbfd85d26
5 changed files with 210 additions and 5 deletions
@@ -0,0 +1,14 @@
import kotlin.reflect.KClass
annotation class A(val klass: KClass<*>)
class C
@A(C::class) fun test1() {}
inline fun <reified T> test2() =
@A(T::class) object {}
inline var <reified T> T.test3
get() = @A(T::class) object {}
set(v) { @A(T::class) object {} }