Remove explicit disabling the new type inference from test data

This commit is contained in:
Victor Petukhov
2022-06-02 16:50:28 +02:00
committed by teamcity
parent c0ae68fe93
commit 224beb24eb
23 changed files with 34 additions and 136 deletions
@@ -1,4 +1,3 @@
// !LANGUAGE: -NewInference
// !DIAGNOSTICS: -UNUSED_PARAMETER
interface A
@@ -1,4 +1,3 @@
// !LANGUAGE: -NewInference
// !DIAGNOSTICS: -UNUSED_PARAMETER
interface A
@@ -12,6 +11,6 @@ fun foo(a: Any) {}
fun test(b: B, c: C) {
foo(
<!DEBUG_INFO_EXPRESSION_TYPE("kotlin.Any")!>select(b, c)<!>
<!DEBUG_INFO_EXPRESSION_TYPE("A")!>select(b, c)<!>
)
}
@@ -1,5 +1,4 @@
// !DIAGNOSTICS: -UNUSED_PARAMETER
// !LANGUAGE: -NewInference
interface ISample
@@ -1,5 +1,4 @@
// !DIAGNOSTICS: -UNUSED_PARAMETER
// !LANGUAGE: -NewInference
interface ISample
@@ -11,13 +10,13 @@ fun <K> elvisExact(x: K?, y: K): @kotlin.internal.Exact K = y
fun <T : Number> materialize(): T? = TODO()
fun test(nullableSample: ISample, any: Any) {
<!DEBUG_INFO_EXPRESSION_TYPE("ISample")!>elvisSimple(
<!DEBUG_INFO_EXPRESSION_TYPE("ISample?")!>elvisSimple(
nullableSample,
<!TYPE_INFERENCE_CONFLICTING_SUBSTITUTIONS!>materialize<!>()
materialize()
)<!>
elvisSimple(
<!DEBUG_INFO_EXPRESSION_TYPE("ISample")!>elvisSimple(nullableSample, <!TYPE_INFERENCE_CONFLICTING_SUBSTITUTIONS!>materialize<!>())<!>,
<!DEBUG_INFO_EXPRESSION_TYPE("ISample?")!>elvisSimple(nullableSample, materialize())<!>,
any
)