Use known type substitutor if it exists

This commit is contained in:
Denis Zharkov
2016-01-25 18:37:08 +03:00
parent b442cf9fec
commit 8b828f1d9a
5 changed files with 8 additions and 8 deletions
@@ -17,7 +17,7 @@ class E
class MyWrapper(a: A): Wrapper<A>(a)
// This wrapper is not legal
class TheirWrapper(e: E): Wrapper<<!UPPER_BOUND_VIOLATED, UPPER_BOUND_VIOLATED!>E<!>>(e)
class TheirWrapper(e: E): Wrapper<<!UPPER_BOUND_VIOLATED!>E<!>>(e)
data class Pair<out T>(val a: T, val b: T)