4f28a0a9a1
#KT-8879 Fixed Added ConstraintContext storing 'derivedFrom' variables. This information is used to prevent infinite recursion: if a variable was substituted in a type of a bound, it shouldn't be substituted there for the second time.
15 lines
233 B
Kotlin
Vendored
15 lines
233 B
Kotlin
Vendored
fun foo<T, P, E>() = 42
|
|
|
|
interface A
|
|
interface B : A
|
|
interface C : B
|
|
|
|
interface Consumer<in T>
|
|
interface Producer<out T>
|
|
interface Inv<T>
|
|
|
|
interface My<T>
|
|
interface Successor<T> : My<T>
|
|
|
|
interface Two<T, P>
|
|
interface Fun<in T, out R> |