Add test on compiling against kotlin.reflect on JDK 9
This commit is contained in:
committed by
Ilya Gorbunov
parent
d41c1d572b
commit
897261a8a6
@@ -0,0 +1,4 @@
|
||||
module usage {
|
||||
requires kotlin.stdlib;
|
||||
requires kotlin.reflect;
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
import kotlin.reflect.*
|
||||
import kotlin.reflect.jvm.*
|
||||
import kotlin.reflect.full.*
|
||||
|
||||
class Test<T> {
|
||||
fun test() {
|
||||
Test::class.allSupertypes
|
||||
Test::class.createType(listOf(KTypeProjection.STAR))
|
||||
this::test.javaMethod
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user