[FIR] KT-55503: Fix current behavior

This commit is contained in:
Nikolay Lunyak
2023-01-31 10:49:40 +02:00
committed by Space Team
parent 8b286577c7
commit 906b16b41e
10 changed files with 168 additions and 0 deletions
@@ -0,0 +1,12 @@
fun foo() = withIntList {
withStringSequence {
forEach { line ->
line.<!UNRESOLVED_REFERENCE_WRONG_RECEIVER!>rem<!>(1)
line.length
}
}
}
fun withIntList(x: List<Int>.() -> Unit) {}
fun <T> withStringSequence(action: Sequence<String>.() -> T): T = TODO()