FIR: add implementation of reified type parameter references
This adds support of T::class.java for reified type parameters
This commit is contained in:
+2
-2
@@ -36,10 +36,10 @@ fun test8() {}
|
||||
|
||||
inline val <reified T> T.test9
|
||||
get() = @AnnArray(arrayOf(
|
||||
<!OTHER_ERROR!>T<!>::class,
|
||||
T::class,
|
||||
Array<T>::class,
|
||||
Array<Array<Array<T>>>::class
|
||||
)) object {}
|
||||
|
||||
inline val <reified T> T.test10
|
||||
get() = @AnnArray([<!OTHER_ERROR!>T<!>::class]) object {}
|
||||
get() = @AnnArray([T::class]) object {}
|
||||
|
||||
+1
-1
@@ -6,7 +6,7 @@ annotation class Ann(vararg val k: KClass<*>)
|
||||
|
||||
inline val <reified T> T.test
|
||||
get() = @Ann(
|
||||
<!OTHER_ERROR!>T<!>::class,
|
||||
T::class,
|
||||
Array<T>::class,
|
||||
Array<Array<Array<T>>>::class
|
||||
) object {}
|
||||
|
||||
@@ -14,7 +14,7 @@ fun <T : Any> foo() {
|
||||
}
|
||||
|
||||
inline fun <reified T : Any> bar() {
|
||||
val t3 = <!OTHER_ERROR!>T<!>?::class
|
||||
val t3 = T?::class
|
||||
}
|
||||
|
||||
val m = Map<String>::class
|
||||
|
||||
Reference in New Issue
Block a user