Convert lambda to reference produces: fix case with qualified this
So #KT-19977 Fixed
This commit is contained in:
committed by
Mikhail Glukhikh
parent
50dc9a14a6
commit
0071ca64c7
@@ -0,0 +1,13 @@
|
||||
// IS_APPLICABLE: true
|
||||
// WITH_RUNTIME
|
||||
|
||||
class Test {
|
||||
fun test() {
|
||||
with(Any()) {
|
||||
val f = { s: String<caret> -> foo(s) }
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
fun Test.foo(s: String) {}
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
// IS_APPLICABLE: true
|
||||
// WITH_RUNTIME
|
||||
|
||||
class Test {
|
||||
fun test() {
|
||||
with(Any()) {
|
||||
val f = this@Test::foo
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
fun Test.foo(s: String) {}
|
||||
@@ -0,0 +1,11 @@
|
||||
// IS_APPLICABLE: true
|
||||
// WITH_RUNTIME
|
||||
|
||||
class Test {
|
||||
fun test() {
|
||||
with(Any()) {
|
||||
val f = { s: String<caret> -> foo(s) }
|
||||
}
|
||||
}
|
||||
fun foo(s: String) {}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
// IS_APPLICABLE: true
|
||||
// WITH_RUNTIME
|
||||
|
||||
class Test {
|
||||
fun test() {
|
||||
with(Any()) {
|
||||
val f = this@Test::foo
|
||||
}
|
||||
}
|
||||
fun foo(s: String) {}
|
||||
}
|
||||
Reference in New Issue
Block a user