Don't report INFERRED_..._INTO_EMPTY_INTERSECTION with explicit arguments

This commit is contained in:
Mikhail Glukhikh
2022-08-12 16:42:32 +02:00
committed by Space
parent a6b90fcb8e
commit b78106e437
5 changed files with 15 additions and 4 deletions
@@ -1,5 +1,5 @@
fun test() {
acceptMyRecursive(<!INFERRED_TYPE_VARIABLE_INTO_EMPTY_INTERSECTION!>inferType<!><<!UPPER_BOUND_VIOLATED!>MyRecursive?<!>>())
acceptMyRecursive(inferType<<!UPPER_BOUND_VIOLATED!>MyRecursive?<!>>())
}
fun acceptMyRecursive(value: MyRecursive?) {}
+1 -1
View File
@@ -1,5 +1,5 @@
fun test() {
acceptMyRecursive(<!INFERRED_TYPE_VARIABLE_INTO_EMPTY_INTERSECTION_WARNING!>inferType<!><<!UPPER_BOUND_VIOLATED, UPPER_BOUND_VIOLATED, UPPER_BOUND_VIOLATED!>MyRecursive?<!>>())
acceptMyRecursive(inferType<<!UPPER_BOUND_VIOLATED, UPPER_BOUND_VIOLATED, UPPER_BOUND_VIOLATED!>MyRecursive?<!>>())
}
fun acceptMyRecursive(value: MyRecursive?) {}