mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 00:21:47 +00:00
Additional tests on reflection for Java methods
This commit is contained in:
7
compiler/testData/codegen/boxWithJava/reflection/referenceToJavaFieldOfKotlinSubclass/K.kt
vendored
Normal file
7
compiler/testData/codegen/boxWithJava/reflection/referenceToJavaFieldOfKotlinSubclass/K.kt
vendored
Normal file
@@ -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