"Convert lambda to reference": fix case with extension 'this'
#KT-21999 Fixed
This commit is contained in:
committed by
Mikhail Glukhikh
parent
2bf3b435f2
commit
0a5aa2b60c
@@ -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) {}
|
||||
Reference in New Issue
Block a user