[FIR] Add discriminating generics into ConeOverloadConflictResolver
This commit is contained in:
+3
-14
@@ -2,17 +2,6 @@
|
||||
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
||||
// !USE_EXPERIMENTAL: kotlin.Experimental
|
||||
|
||||
import kotlin.experimental.ExperimentalTypeInference
|
||||
|
||||
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)
|
||||
}
|
||||
fun test(x: List<Int>) {
|
||||
x + x
|
||||
}
|
||||
Reference in New Issue
Block a user