Convert lambda to reference: use fully qualified type names if needed #KT-13438 Fixed
(cherry picked from commit e2e761e)
This commit is contained in:
committed by
Mikhail Glukhikh
parent
a41c4b9a0f
commit
2ab553243c
@@ -0,0 +1,13 @@
|
||||
class Foo {
|
||||
class Bar {
|
||||
fun foo() {}
|
||||
}
|
||||
}
|
||||
|
||||
class Bar {
|
||||
fun foo() {}
|
||||
}
|
||||
|
||||
fun use() {
|
||||
val f: (Foo.Bar) -> Unit = { <caret>it.foo() }
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
class Foo {
|
||||
class Bar {
|
||||
fun foo() {}
|
||||
}
|
||||
}
|
||||
|
||||
class Bar {
|
||||
fun foo() {}
|
||||
}
|
||||
|
||||
fun use() {
|
||||
val f: (Foo.Bar) -> Unit = Foo.Bar::foo
|
||||
}
|
||||
Reference in New Issue
Block a user