Fix another non-determinism in CommonSupertypes
This commit is contained in:
@@ -8,4 +8,17 @@ open class B : In<B>
|
||||
|
||||
fun <T> select(x: T, y: T) = x
|
||||
|
||||
fun <!OI;IMPLICIT_INTERSECTION_TYPE!>foo2<!>() = select(A(), B()) // Type is In<A & B> is prohibited in return position
|
||||
fun <!OI;IMPLICIT_INTERSECTION_TYPE!>foo2<!>() = select(A(), B()) // Type "In<A & B>" is prohibited in return position
|
||||
|
||||
|
||||
|
||||
open class C : In<C>
|
||||
open class D : In<D>
|
||||
open class E : In<E>
|
||||
open class F : In<F>
|
||||
open class G : In<G>
|
||||
open class H : In<H>
|
||||
|
||||
fun <S> select8(a: S, b: S, c: S, d: S, e: S, f: S, g: S, h: S) = a
|
||||
|
||||
fun <!OI;IMPLICIT_INTERSECTION_TYPE!>foo8<!>() = select8(A(), B(), C(), D(), E(), F(), G(), H())
|
||||
|
||||
Reference in New Issue
Block a user