Fix another non-determinism in CommonSupertypes

This commit is contained in:
Alexander Udalov
2018-05-03 14:05:29 +02:00
parent e07f83ddbc
commit a2d45062c2
3 changed files with 60 additions and 3 deletions
@@ -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())