"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,13 @@
// IS_APPLICABLE: true
// WITH_RUNTIME
class Test {
fun test() {
with(Any()) {
val f = { s: String<caret> -> foo(s) }
}
}
}
fun Test.foo(s: String) {}