Convert lambda to reference: fix it works correctly for labeled expression
#KT-37214 Fixed
This commit is contained in:
committed by
Yan Zhulanow
parent
2a36a8acac
commit
b9fab1123d
@@ -0,0 +1,13 @@
|
||||
class A {
|
||||
fun f1() {}
|
||||
}
|
||||
|
||||
fun myA(func: A.() -> Unit) {
|
||||
A().func()
|
||||
}
|
||||
|
||||
fun main() {
|
||||
myA foo@{
|
||||
<caret>this@foo.f1()
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
class A {
|
||||
fun f1() {}
|
||||
}
|
||||
|
||||
fun myA(func: A.() -> Unit) {
|
||||
A().func()
|
||||
}
|
||||
|
||||
fun main() {
|
||||
myA(A::f1)
|
||||
}
|
||||
Reference in New Issue
Block a user