Files
kotlin-fork/compiler/testData/diagnostics/testsWithStdLib/kt55503.kt
T
2023-02-03 08:26:17 +00:00

13 lines
304 B
Kotlin
Vendored

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()