[NI] Don't fail on captured type that contains type variable

This commit is contained in:
Mikhail Zarechenskiy
2018-01-17 18:27:12 +03:00
parent 145c04e7e2
commit 4cd07f59a0
7 changed files with 63 additions and 15 deletions
@@ -18,7 +18,7 @@ fun test1(int: Int, any: Any) {
val a2 : MyList<out Any> = getMyList(int)
val a3 : MyList<out Any> = <!NI;TYPE_MISMATCH!>getMyListToReadFrom(int)<!>
val a3 : MyList<out Any> = getMyListToReadFrom(int)
val a4 : MyList<in Int> = getMyList(any)