mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 00:21:47 +00:00
Support :: references to Java instance fields in codegen
#KT-1183 In Progress
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
import publicMutableField as A
|
||||
|
||||
fun box(): String {
|
||||
val a = A()
|
||||
val f = A::field
|
||||
if (f.get(a) != 239) return "Fail 1: ${f.get(a)}"
|
||||
f[a] = 42
|
||||
if (f.get(a) != 42) return "Fail 2: ${f.get(a)}"
|
||||
if (f.get(a) != 42) return "Fail 2: ${f.get(a)}"
|
||||
return "OK"
|
||||
}
|
||||
Reference in New Issue
Block a user