blob: 7ffd253d58586fea42e81775cfe92ba042ebefb6 [file]
// 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"
}