7e69a5ac9a
#KT-5759 Fixed
15 lines
296 B
Kotlin
15 lines
296 B
Kotlin
import kotlin.reflect.jvm.kotlin
|
|
|
|
class A {
|
|
// There's a synthetic "$kotlinClass" field here
|
|
}
|
|
|
|
fun box(): String {
|
|
for (field in javaClass<A>().getDeclaredFields()) {
|
|
val prop = field.kotlin
|
|
if (prop != null) return "Fail, property found: $prop"
|
|
}
|
|
|
|
return "OK"
|
|
}
|