Support references to top level and member properties in JVM codegen
#KT-1183 In Progress
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
data class Box(val value: String)
|
||||
|
||||
val foo = Box("lol")
|
||||
|
||||
fun box(): String {
|
||||
val property = ::foo
|
||||
if (property.get() != Box("lol")) return "Fail value: ${property.get()}"
|
||||
if (property.name != "foo") return "Fail name: ${property.name}"
|
||||
return "OK"
|
||||
}
|
||||
Reference in New Issue
Block a user