Remove explicit disabling the new type inference from test data
This commit is contained in:
committed by
teamcity
parent
c0ae68fe93
commit
224beb24eb
-1
@@ -1,4 +1,3 @@
|
||||
// !LANGUAGE: -NewInference
|
||||
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
||||
|
||||
interface A
|
||||
|
||||
+1
-2
@@ -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
@@ -1,5 +1,4 @@
|
||||
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
||||
// !LANGUAGE: -NewInference
|
||||
|
||||
interface ISample
|
||||
|
||||
|
||||
compiler/testData/diagnostics/tests/inference/commonSystem/postponedCompletionWithExactAnnotation.kt
Vendored
+3
-4
@@ -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
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user