mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 00:21:47 +00:00
Fix KClassOrigin for non-Kotlin classes
Check against presence of KotlinClass annotation
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
public class J extends K {
|
||||
public final int value = 42;
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
open class K
|
||||
|
||||
fun box(): String {
|
||||
val f = J::value
|
||||
val a = J()
|
||||
return if (f.get(a) == 42) "OK" else "Fail: ${f[a]}"
|
||||
}
|
||||
Reference in New Issue
Block a user