Solution for EA-66870: Foo<in *> and Foo<out *> types are now treated as incorrect.
#EA-66870 Fixed.
This commit is contained in:
@@ -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!>in<!> *>> foo(x: T)
|
||||
fun bar() {
|
||||
val s = ArrayList<ArrayList<Int>>()
|
||||
foo(s)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user