Convert lambda to reference: fix it works correctly in anonymous object
#KT-31682 Fixed
This commit is contained in:
committed by
Yan Zhulanow
parent
b9fab1123d
commit
8f3392d635
@@ -0,0 +1,15 @@
|
||||
interface I {
|
||||
fun foo(i: Int)
|
||||
}
|
||||
|
||||
fun create(): I {
|
||||
return object : I {
|
||||
override fun foo(i: Int) {
|
||||
bar {<caret> baz(it) }
|
||||
}
|
||||
|
||||
fun bar(f: (Int) -> Unit) {}
|
||||
|
||||
fun baz(i: Int) {}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user