"Convert lambda to reference": fix case with extension 'this'

#KT-21999 Fixed
This commit is contained in:
Toshiaki Kameyama
2018-08-02 08:21:06 +03:00
committed by Mikhail Glukhikh
parent 2bf3b435f2
commit 0a5aa2b60c
8 changed files with 73 additions and 6 deletions
@@ -0,0 +1,14 @@
// WITH_RUNTIME
fun foo(f: () -> Unit) {}
class Bar {
fun bar() {}
}
class Test {
fun test() {
with(Bar()) {
foo { <caret>bar() }
}
}
}