Don't report INFERRED_..._INTO_EMPTY_INTERSECTION with explicit arguments
This commit is contained in:
@@ -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,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?) {}
|
||||
|
||||
@@ -8,5 +8,5 @@ fun <T : Comparable<T>, S : T?> Expression<in S>.greater(other: T): GreaterOp =
|
||||
fun foo(countExpr: Expression<Long>) {
|
||||
countExpr.greater(0)
|
||||
countExpr.<!INFERRED_TYPE_VARIABLE_INTO_EMPTY_INTERSECTION!>greater<!>("0")
|
||||
countExpr.<!INFERRED_TYPE_VARIABLE_INTO_EMPTY_INTERSECTION!>greater<!><String, Nothing>("0")
|
||||
countExpr.greater<String, Nothing>("0")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user