Solution for EA-66870: Foo<in *> and Foo<out *> types are now treated as incorrect.

#EA-66870  Fixed.
This commit is contained in:
Mikhail Glukhikh
2015-05-26 15:56:57 +03:00
parent 9b50705a0e
commit 3ad06f169d
7 changed files with 63 additions and 7 deletions
@@ -0,0 +1,11 @@
// Reproduces exception in TypeResolver.kt: EA-66870
import java.util.ArrayList
abstract class J {
public abstract fun <T : Collection<S>, S : List<<!ILLEGAL_MODIFIER!>out<!> *>> foo(x: T)
fun bar() {
val s = ArrayList<ArrayList<Int>>()
foo(s)
}
}