Files
kotlin-fork/compiler/testData/integration/smoke/reflect/reflect.kt
T
Alexander Udalov e6588ee8a4 CLI: include META-INF/services/ from kotlin-reflect with -include-runtime
This is an addition to bd205317aa where we
started to add the contents of kotlin-reflect into the resulting jar if
-include-runtime is specified. Apparently kotlin-reflect doesn't work
without some services in META-INF/services/, which didn't satisfy the
condition for inclusion. The existing test didn't catch that because
loading class annotations does not always lead to those services being
loaded.
2021-02-10 12:05:36 +01:00

9 lines
165 B
Kotlin
Vendored

package reflect
import kotlin.reflect.jvm.kotlinFunction
fun main() {
String::class.annotations
KotlinVersion::class.java.methods.first().kotlinFunction
}