[FIR] Fix resolving of refs with implicit this in lambdas in smartcasts

This commit is contained in:
Ivan Kochurkin
2022-03-20 20:17:00 +03:00
committed by teamcity
parent c6f52893fb
commit 48dbb9ceb9
8 changed files with 46 additions and 3 deletions
@@ -0,0 +1,7 @@
fun Any.test() {
val x: () -> Int = when (this) {
is String -> { { <!DEBUG_INFO_IMPLICIT_RECEIVER_SMARTCAST!>length<!> } }
else -> { { 1 } }
}
<!UNRESOLVED_REFERENCE!>length<!>
}