Revert testdata accidentally committed in 665405c4
This commit is contained in:
+13
-2
@@ -2,6 +2,17 @@
|
|||||||
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
||||||
// !USE_EXPERIMENTAL: kotlin.Experimental
|
// !USE_EXPERIMENTAL: kotlin.Experimental
|
||||||
|
|
||||||
fun test(x: List<Int>) {
|
import kotlin.experimental.ExperimentalTypeInference
|
||||||
x + x
|
|
||||||
|
interface ProducerScope<E> {
|
||||||
|
fun yield(e: E)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@UseExperimental(ExperimentalTypeInference::class)
|
||||||
|
fun <E> produce(@BuilderInference block: ProducerScope<E>.() -> Unit): ProducerScope<E> = TODO()
|
||||||
|
|
||||||
|
fun <K> filter(e: K, predicate: (K) -> Boolean) =
|
||||||
|
produce {
|
||||||
|
predicate(e)
|
||||||
|
yield(42)
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user