7e4d9d9f64
Many of them have been found & minimized at FP tests/user projects ^KT-59791 Fixed
19 lines
312 B
Kotlin
Vendored
19 lines
312 B
Kotlin
Vendored
// FIR_IDENTICAL
|
|
class Controller<T> {
|
|
fun yield(t: T): Boolean = true
|
|
}
|
|
|
|
fun <T1> Controller<T1>.forEach(x: (T1) -> Unit) {}
|
|
|
|
fun <S> generate(g: suspend Controller<S>.() -> Unit): S = TODO()
|
|
|
|
fun main() {
|
|
generate {
|
|
forEach {
|
|
foo(it)
|
|
}
|
|
}.length
|
|
}
|
|
|
|
fun foo(x: String) {}
|