20 lines
346 B
Kotlin
Vendored
20 lines
346 B
Kotlin
Vendored
// 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"
|
|
}
|