Files
kotlin-fork/compiler/testData/integration/smoke/noReflect/noReflect.kt
T
scaventz bd205317aa CLI: improve behavior of -include-runtime
1.fix KT-17344: Include kotlin-reflect to resulting jar if "-include-runtime" is specified, unless the -no-reflect option is specified.
2.fix KT-43220: -include-runtime should add .kotlin_builtins to the output
2021-02-02 12:49:23 -08:00

9 lines
205 B
Kotlin
Vendored

package noReflect
fun main() {
try {
String::class.annotations
} catch (e: KotlinReflectionNotSupportedError) {
println("KotlinReflectionNotSupportedError has been caught")
}
}