mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 00:21:47 +00:00
Add test on compiling against kotlin.reflect on JDK 9
This commit is contained in:
committed by
Ilya Gorbunov
parent
d41c1d572b
commit
897261a8a6
1
compiler/testData/javaModules/dependencyOnReflect/usage.txt
vendored
Normal file
1
compiler/testData/javaModules/dependencyOnReflect/usage.txt
vendored
Normal file
@@ -0,0 +1 @@
|
||||
OK
|
||||
4
compiler/testData/javaModules/dependencyOnReflect/usage/module-info.java
vendored
Normal file
4
compiler/testData/javaModules/dependencyOnReflect/usage/module-info.java
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
module usage {
|
||||
requires kotlin.stdlib;
|
||||
requires kotlin.reflect;
|
||||
}
|
||||
11
compiler/testData/javaModules/dependencyOnReflect/usage/usage.kt
vendored
Normal file
11
compiler/testData/javaModules/dependencyOnReflect/usage/usage.kt
vendored
Normal 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
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user