4bd48c4796
Most of modifier diagnostic is expressed by REDUNDANT_MODIFIER, INCOMPATIBLE_MODIFIERS, REPEATED_MODIFIER, WRONG_MODIFIER_TARGET, WRONG_MODIFIER_PARENT. A set of modifier diagnostics is not in use now (but not deleted yet).
11 lines
282 B
Kotlin
Vendored
11 lines
282 B
Kotlin
Vendored
// Reproduces exception in TypeResolver.kt: EA-66870
|
|
|
|
import java.util.ArrayList
|
|
|
|
abstract class J {
|
|
public abstract fun <T : Collection<S>, S : List<<!WRONG_MODIFIER_TARGET!>out<!> *>> foo(x: T)
|
|
fun bar() {
|
|
val s = ArrayList<ArrayList<Int>>()
|
|
foo(s)
|
|
}
|
|
} |