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
@@ -0,0 +1 @@
OK
@@ -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
}
}
@@ -257,4 +257,8 @@ class Java9ModulesIntegrationTest : AbstractKotlinCompilerIntegrationTest() {
fun testDependencyOnStdlibJdk78() {
module("usage", listOf(File("dist/kotlinc/lib/kotlin-stdlib-jdk7.jar"), File("dist/kotlinc/lib/kotlin-stdlib-jdk8.jar")))
}
fun testDependencyOnReflect() {
module("usage")
}
}