Revert "[FIR] Enable ForbidInferringTypeVariablesIntoEmptyIntersection in 2.0"

^KT-66196 Fixed
Keep it a warning in 2.0

This reverts commit be232d3e6f.
This commit is contained in:
Nikita Bobko
2024-02-28 12:59:18 +01:00
committed by Space Team
parent 5c2017fa5f
commit 052baf1b04
22 changed files with 22 additions and 22 deletions
@@ -29,7 +29,7 @@ fun test3() = run {
fun test4() = run {
if (p) return@run
<!INFERRED_TYPE_VARIABLE_INTO_EMPTY_INTERSECTION_ERROR!>incompatibleC<!>() // ? either uninferred T or error (Unit </: C)
<!INFERRED_TYPE_VARIABLE_INTO_EMPTY_INTERSECTION_WARNING!>incompatibleC<!>() // ? either uninferred T or error (Unit </: C)
}
fun main() {
@@ -47,7 +47,7 @@ fun test(i: Inv<Nothing>, iUnit: Inv<Unit>) {
if (iUnit is String) {
launch {
run(A.<!INFERRED_TYPE_VARIABLE_INTO_EMPTY_INTERSECTION_ERROR!>flexible<!>(iUnit)) { 42 }
run(A.<!INFERRED_TYPE_VARIABLE_INTO_EMPTY_INTERSECTION_WARNING!>flexible<!>(iUnit)) { 42 }
}
}
}