e6588ee8a4
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.
9 lines
165 B
Kotlin
Vendored
9 lines
165 B
Kotlin
Vendored
package reflect
|
|
|
|
import kotlin.reflect.jvm.kotlinFunction
|
|
|
|
fun main() {
|
|
String::class.annotations
|
|
KotlinVersion::class.java.methods.first().kotlinFunction
|
|
}
|