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 @@
|
|||||||
|
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() {
|
fun testDependencyOnStdlibJdk78() {
|
||||||
module("usage", listOf(File("dist/kotlinc/lib/kotlin-stdlib-jdk7.jar"), File("dist/kotlinc/lib/kotlin-stdlib-jdk8.jar")))
|
module("usage", listOf(File("dist/kotlinc/lib/kotlin-stdlib-jdk7.jar"), File("dist/kotlinc/lib/kotlin-stdlib-jdk8.jar")))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fun testDependencyOnReflect() {
|
||||||
|
module("usage")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user