Codegen for callable reference expressions
#KT-1183 In Progress
This commit is contained in:
+14
@@ -0,0 +1,14 @@
|
||||
class A {
|
||||
var result = "Fail"
|
||||
|
||||
fun foo(newResult: String) {
|
||||
result = newResult
|
||||
}
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
val a = A()
|
||||
val x = A::foo
|
||||
a.x("OK")
|
||||
return a.result
|
||||
}
|
||||
Reference in New Issue
Block a user