14 lines
213 B
Plaintext
Vendored
14 lines
213 B
Plaintext
Vendored
interface MySeq<T> {
|
|
fun yield(arg: T)
|
|
}
|
|
|
|
fun <T> mySeq(f: MySeq<T>.() -> Unit): MySeq<T> = null!!
|
|
|
|
class Test {
|
|
fun repro() = mySeq<Int> {
|
|
mySeq<Double> {
|
|
yield(1.0)
|
|
}
|
|
}
|
|
|
|
} |