[FE] Don't check intersection emptiness if there were lower constraints
This commit is contained in:
committed by
teamcity
parent
d4d45a8410
commit
73be9d0a20
-9
@@ -1,9 +0,0 @@
|
||||
// WITH_STDLIB
|
||||
|
||||
fun expandMaskConditionsAndUpdateVariableNodes(validOffsets: Collection<Int>) {}
|
||||
|
||||
fun main(x: List<Int>, y: Int) {
|
||||
<!INFERRED_TYPE_VARIABLE_INTO_EMPTY_INTERSECTION!>expandMaskConditionsAndUpdateVariableNodes<!>(
|
||||
x.mapTo(mutableSetOf()) { y }
|
||||
)
|
||||
}
|
||||
+2
-1
@@ -1,9 +1,10 @@
|
||||
// FIR_IDENTICAL
|
||||
// WITH_STDLIB
|
||||
|
||||
fun expandMaskConditionsAndUpdateVariableNodes(validOffsets: Collection<Int>) {}
|
||||
|
||||
fun main(x: List<Int>, y: Int) {
|
||||
<!INFERRED_TYPE_VARIABLE_INTO_EMPTY_INTERSECTION_WARNING!>expandMaskConditionsAndUpdateVariableNodes<!>(
|
||||
expandMaskConditionsAndUpdateVariableNodes(
|
||||
x.mapTo(mutableSetOf()) { y }
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user