7e4d9d9f64
Many of them have been found & minimized at FP tests/user projects ^KT-59791 Fixed
19 lines
286 B
Kotlin
Vendored
19 lines
286 B
Kotlin
Vendored
// FIR_IDENTICAL
|
|
|
|
class Controller<T> {
|
|
fun yield(t: T) {}
|
|
}
|
|
|
|
fun <S> generate(g: suspend Controller<S>.() -> Unit) {}
|
|
|
|
fun main() {
|
|
generate {
|
|
myRun {
|
|
yield("")
|
|
myLet {}
|
|
}
|
|
}
|
|
}
|
|
|
|
fun myLet(x: () -> Unit) {}
|
|
fun <E> myRun(x: () -> E) {} |