mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-10 15:53:46 +00:00
21 lines
376 B
Kotlin
Vendored
21 lines
376 B
Kotlin
Vendored
// IGNORE_BACKEND_FIR: JVM_IR
|
|
// TARGET_BACKEND: JVM
|
|
// WITH_RUNTIME
|
|
|
|
class C {
|
|
fun f() {}
|
|
val r = 0
|
|
}
|
|
|
|
fun check(c: Class<*>) {
|
|
if (!c.isSynthetic) throw AssertionError("Fail: $c is not synthetic: ${c.modifiers}")
|
|
}
|
|
|
|
fun box(): String {
|
|
check(C::f.javaClass)
|
|
check(C::r.javaClass)
|
|
check(C()::f.javaClass)
|
|
check(C()::r.javaClass)
|
|
return "OK"
|
|
}
|