Don't report the same diagnsotics several times
This commit is contained in:
Vendored
+2
-1
@@ -1,3 +1,4 @@
|
||||
// !WITH_NEW_INFERENCE
|
||||
package a
|
||||
|
||||
fun <V: U, U> foo(v: V, u: U) = u
|
||||
@@ -15,7 +16,7 @@ fun <T> checkItIsExactlyAny(t: T, l: MutableList<T>) {}
|
||||
fun <V : U, U> baz(v: V, u: MutableSet<U>) = u
|
||||
|
||||
fun test(a: Any, s: MutableSet<String>) {
|
||||
baz(a, <!TYPE_MISMATCH, TYPE_MISMATCH!>s<!>)
|
||||
<!TYPE_INFERENCE_UPPER_BOUND_VIOLATED{OI}!>baz<!>(a, <!TYPE_MISMATCH{NI}!>s<!>)
|
||||
}
|
||||
|
||||
//from standard library
|
||||
|
||||
Reference in New Issue
Block a user