Add test on compiling against kotlin.reflect on JDK 9

This commit is contained in:
Alexander Udalov
2017-08-18 10:28:28 +03:00
committed by Ilya Gorbunov
parent d41c1d572b
commit 897261a8a6
4 changed files with 20 additions and 0 deletions

View File

@@ -0,0 +1 @@
OK

View File

@@ -0,0 +1,4 @@
module usage {
requires kotlin.stdlib;
requires kotlin.reflect;
}

View File

@@ -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
}
}