[FIR] Enable ForbidInferringTypeVariablesIntoEmptyIntersection in 2.0

#KT-56377
This commit is contained in:
Kirill Rakhman
2023-06-20 09:49:55 +02:00
committed by Space Team
parent 585d4b3098
commit be232d3e6f
23 changed files with 23 additions and 21 deletions
@@ -1,4 +1,5 @@
// FIR_IDENTICAL
// !LANGUAGE: -ForbidInferringTypeVariablesIntoEmptyIntersection
class Expression<T>(val x: T)
class GreaterOp(val expr1: Expression<*>, val expr2: Expression<*>)
@@ -7,5 +7,5 @@ fun test1(l: List<Number>) {
val i: Int = l.firstTyped()
val s: String = l.<!INFERRED_TYPE_VARIABLE_INTO_EMPTY_INTERSECTION_WARNING!>firstTyped<!>()
val s: String = l.<!INFERRED_TYPE_VARIABLE_INTO_EMPTY_INTERSECTION_ERROR!>firstTyped<!>()
}