mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-11 00:21:29 +00:00
15 lines
222 B
Kotlin
Vendored
15 lines
222 B
Kotlin
Vendored
// WITH_RUNTIME
|
|
|
|
annotation class NoArg
|
|
|
|
@NoArg
|
|
class Test(val a: String)
|
|
|
|
fun box(): String {
|
|
try {
|
|
Test::class.java.newInstance()
|
|
return "OK"
|
|
} catch (_: Throwable) {
|
|
return "Fail"
|
|
}
|
|
} |