Remove explicit disabling the new type inference from test data
This commit is contained in:
committed by
teamcity
parent
c0ae68fe93
commit
224beb24eb
-6
@@ -16877,12 +16877,6 @@ public class DiagnosisCompilerTestFE10TestdataTestGenerated extends AbstractDiag
|
||||
runTest("compiler/testData/diagnostics/tests/inference/substitutions/kt32189returnTypeWithTypealiasSubtitution.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt32189returnTypeWithTypealiasSubtitutionOldInference.kt")
|
||||
public void testKt32189returnTypeWithTypealiasSubtitutionOldInference() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/substitutions/kt32189returnTypeWithTypealiasSubtitutionOldInference.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt6081SubstituteIntoClassCorrectly.kt")
|
||||
public void testKt6081SubstituteIntoClassCorrectly() throws Exception {
|
||||
|
||||
-1
@@ -1,4 +1,3 @@
|
||||
// !LANGUAGE: -NewInference
|
||||
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
||||
|
||||
open class A
|
||||
|
||||
-6
@@ -16877,12 +16877,6 @@ public class FirOldFrontendDiagnosticsTestGenerated extends AbstractFirDiagnosti
|
||||
runTest("compiler/testData/diagnostics/tests/inference/substitutions/kt32189returnTypeWithTypealiasSubtitution.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt32189returnTypeWithTypealiasSubtitutionOldInference.kt")
|
||||
public void testKt32189returnTypeWithTypealiasSubtitutionOldInference() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/substitutions/kt32189returnTypeWithTypealiasSubtitutionOldInference.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt6081SubstituteIntoClassCorrectly.kt")
|
||||
public void testKt6081SubstituteIntoClassCorrectly() throws Exception {
|
||||
|
||||
-6
@@ -16877,12 +16877,6 @@ public class FirOldFrontendDiagnosticsWithLightTreeTestGenerated extends Abstrac
|
||||
runTest("compiler/testData/diagnostics/tests/inference/substitutions/kt32189returnTypeWithTypealiasSubtitution.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt32189returnTypeWithTypealiasSubtitutionOldInference.kt")
|
||||
public void testKt32189returnTypeWithTypealiasSubtitutionOldInference() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/substitutions/kt32189returnTypeWithTypealiasSubtitutionOldInference.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt6081SubstituteIntoClassCorrectly.kt")
|
||||
public void testKt6081SubstituteIntoClassCorrectly() throws Exception {
|
||||
|
||||
-1
@@ -1,4 +1,3 @@
|
||||
// !LANGUAGE: -NewInference
|
||||
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
||||
|
||||
open class A
|
||||
|
||||
-1
@@ -1,4 +1,3 @@
|
||||
// !LANGUAGE: -NewInference
|
||||
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
||||
|
||||
open class A
|
||||
|
||||
-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
|
||||
)
|
||||
|
||||
|
||||
+4
-4
@@ -1,12 +1,12 @@
|
||||
/selectFromCovariantAndContravariantTypes.kt:11:22: warning: parameter 'y' is never used
|
||||
/selectFromCovariantAndContravariantTypes.kt:10:22: warning: parameter 'y' is never used
|
||||
fun <K> select(x: K, y: K): K = x
|
||||
^
|
||||
/selectFromCovariantAndContravariantTypes.kt:12:19: warning: parameter 'x' is never used
|
||||
/selectFromCovariantAndContravariantTypes.kt:11:19: warning: parameter 'x' is never used
|
||||
fun <V> genericIn(x: In<V>) {}
|
||||
^
|
||||
/selectFromCovariantAndContravariantTypes.kt:13:20: warning: parameter 'x' is never used
|
||||
/selectFromCovariantAndContravariantTypes.kt:12:20: warning: parameter 'x' is never used
|
||||
fun <V> genericOut(x: Out<V>) {}
|
||||
^
|
||||
/selectFromCovariantAndContravariantTypes.kt:16:5: warning: type argument for a type parameter V can't be inferred because it has incompatible upper bounds: A, B (multiple incompatible classes). This will become an error in Kotlin 1.9
|
||||
/selectFromCovariantAndContravariantTypes.kt:15:5: warning: type argument for a type parameter V can't be inferred because it has incompatible upper bounds: A, B (multiple incompatible classes). This will become an error in Kotlin 1.9
|
||||
genericIn(select(a, b))
|
||||
^
|
||||
|
||||
-22
@@ -1,22 +0,0 @@
|
||||
// !LANGUAGE: -NewInference
|
||||
// !DIAGNOSTICS: -UNUSED_VARIABLE -UNUSED_PARAMETER
|
||||
|
||||
class B {
|
||||
class Builder
|
||||
}
|
||||
|
||||
typealias ApplyRestrictions = B.Builder.() -> B.Builder
|
||||
|
||||
fun applyRestrictions1(): ApplyRestrictions = TODO()
|
||||
fun applyRestrictions2() = applyRestrictions1()
|
||||
fun <K> applyRestrictions3(e: K) = applyRestrictions1()
|
||||
|
||||
fun buildB() {
|
||||
val a1 = applyRestrictions1()
|
||||
val a2 = applyRestrictions2()
|
||||
val a3 = applyRestrictions3("foo")
|
||||
|
||||
B.Builder().a1()
|
||||
B.Builder().a2()
|
||||
B.Builder().a3()
|
||||
}
|
||||
-22
@@ -1,22 +0,0 @@
|
||||
// !LANGUAGE: -NewInference
|
||||
// !DIAGNOSTICS: -UNUSED_VARIABLE -UNUSED_PARAMETER
|
||||
|
||||
class B {
|
||||
class Builder
|
||||
}
|
||||
|
||||
typealias ApplyRestrictions = B.Builder.() -> B.Builder
|
||||
|
||||
fun applyRestrictions1(): ApplyRestrictions = TODO()
|
||||
fun applyRestrictions2() = applyRestrictions1()
|
||||
fun <K> applyRestrictions3(e: K) = applyRestrictions1()
|
||||
|
||||
fun buildB() {
|
||||
val a1 = applyRestrictions1()
|
||||
val a2 = applyRestrictions2()
|
||||
val a3 = applyRestrictions3("foo")
|
||||
|
||||
B.Builder().a1()
|
||||
B.Builder().a2()
|
||||
B.Builder().<!UNRESOLVED_REFERENCE!>a3<!>()
|
||||
}
|
||||
-21
@@ -1,21 +0,0 @@
|
||||
package
|
||||
|
||||
public fun applyRestrictions1(): ApplyRestrictions /* = B.Builder.() -> B.Builder */
|
||||
public fun applyRestrictions2(): ApplyRestrictions /* = B.Builder.() -> B.Builder */
|
||||
public fun </*0*/ K> applyRestrictions3(/*0*/ e: K): ApplyRestrictions /* = B.Builder.() -> B.Builder */
|
||||
public fun buildB(): kotlin.Unit
|
||||
|
||||
public final class B {
|
||||
public constructor B()
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
|
||||
public final class Builder {
|
||||
public constructor Builder()
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
}
|
||||
public typealias ApplyRestrictions = B.Builder.() -> B.Builder
|
||||
-1
@@ -1,5 +1,4 @@
|
||||
// !DIAGNOSTICS: -UNSUPPORTED -UNUSED_EXPRESSION -DEBUG_INFO_SMARTCAST -USELESS_CAST -UNUSED_PARAMETER -UNCHECKED_CAST -CAST_NEVER_SUCCEEDS -UNUSED_VARIABLE -UNREACHABLE_CODE -DEBUG_INFO_CONSTANT
|
||||
// !LANGUAGE: -NewInference
|
||||
// SKIP_TXT
|
||||
|
||||
// FILE: Test.java
|
||||
|
||||
compiler/testData/diagnostics/tests/inference/upperBounds/flexibilityInCommonSuperTypeCalculation.kt
Vendored
+20
-21
@@ -1,5 +1,4 @@
|
||||
// !DIAGNOSTICS: -UNSUPPORTED -UNUSED_EXPRESSION -DEBUG_INFO_SMARTCAST -USELESS_CAST -UNUSED_PARAMETER -UNCHECKED_CAST -CAST_NEVER_SUCCEEDS -UNUSED_VARIABLE -UNREACHABLE_CODE -DEBUG_INFO_CONSTANT
|
||||
// !LANGUAGE: -NewInference
|
||||
// SKIP_TXT
|
||||
|
||||
// FILE: Test.java
|
||||
@@ -107,7 +106,7 @@ fun case_8() {
|
||||
val x3 = Test.id(A(null))
|
||||
|
||||
val result_1 = select(x1, x2, x3)
|
||||
<!DEBUG_INFO_EXPRESSION_TYPE("A<out kotlin.Any?>?")!>result_1<!>
|
||||
<!DEBUG_INFO_EXPRESSION_TYPE("A<out {Comparable<*>? & java.io.Serializable?}>?")!>result_1<!>
|
||||
}
|
||||
|
||||
fun case_9() {
|
||||
@@ -116,7 +115,7 @@ fun case_9() {
|
||||
val x3 = A(Test.id(A('s')))
|
||||
|
||||
val result_1 = select(x1, x2, x3)
|
||||
<!DEBUG_INFO_EXPRESSION_TYPE("A<out A<out kotlin.Any>?>")!>result_1<!>
|
||||
<!DEBUG_INFO_EXPRESSION_TYPE("A<out A<out {Comparable<*> & java.io.Serializable}>?>")!>result_1<!>
|
||||
}
|
||||
|
||||
fun case_10() {
|
||||
@@ -166,18 +165,18 @@ fun <T> case_11(y: T) {
|
||||
|
||||
<!DEBUG_INFO_EXPRESSION_TYPE("(T..T?)")!>x1<!>
|
||||
<!DEBUG_INFO_EXPRESSION_TYPE("T?")!>x2<!>
|
||||
<!DEBUG_INFO_EXPRESSION_TYPE("(T..T?)")!>x3<!>
|
||||
<!DEBUG_INFO_EXPRESSION_TYPE("T")!>y<!>
|
||||
<!DEBUG_INFO_EXPRESSION_TYPE("(T & Any..T?)")!>x3<!>
|
||||
<!DEBUG_INFO_EXPRESSION_TYPE("T & T & Any")!>y<!>
|
||||
|
||||
<!DEBUG_INFO_EXPRESSION_TYPE("A<T>")!>result_1<!>
|
||||
<!DEBUG_INFO_EXPRESSION_TYPE("A<(T..T?)>")!>result_2<!>
|
||||
<!DEBUG_INFO_EXPRESSION_TYPE("A<(T..T?)>")!>result_3<!>
|
||||
<!DEBUG_INFO_EXPRESSION_TYPE("A<out (T..T?)>")!>result_1<!>
|
||||
<!DEBUG_INFO_EXPRESSION_TYPE("A<out T?>")!>result_2<!>
|
||||
<!DEBUG_INFO_EXPRESSION_TYPE("A<(T & Any..T?)>")!>result_3<!>
|
||||
<!DEBUG_INFO_EXPRESSION_TYPE("A<T>")!>result_4<!>
|
||||
<!DEBUG_INFO_EXPRESSION_TYPE("A<(T..T?)>")!>result_5<!>
|
||||
<!DEBUG_INFO_EXPRESSION_TYPE("A<(T..T?)>")!>result_6<!>
|
||||
<!DEBUG_INFO_EXPRESSION_TYPE("A<(T & Any..T?)>")!>result_6<!>
|
||||
<!DEBUG_INFO_EXPRESSION_TYPE("A<T>")!>result_7<!>
|
||||
<!DEBUG_INFO_EXPRESSION_TYPE("A<T>")!>result_8<!>
|
||||
<!DEBUG_INFO_EXPRESSION_TYPE("A<(T..T?)>")!>result_9<!>
|
||||
<!DEBUG_INFO_EXPRESSION_TYPE("A<(T & Any..T?)>")!>result_9<!>
|
||||
|
||||
<!DEBUG_INFO_EXPRESSION_TYPE("(T..T?)")!>result_10<!>
|
||||
<!DEBUG_INFO_EXPRESSION_TYPE("T?")!>result_11<!>
|
||||
@@ -207,7 +206,7 @@ fun case_12() {
|
||||
|
||||
<!DEBUG_INFO_EXPRESSION_TYPE("(kotlin.collections.MutableList<(kotlin.Int..kotlin.Int?)>..kotlin.collections.List<(kotlin.Int..kotlin.Int?)>?)")!>result_1<!>
|
||||
<!DEBUG_INFO_EXPRESSION_TYPE("(kotlin.collections.MutableList<kotlin.Int>..kotlin.collections.List<kotlin.Int>?)")!>result_2<!>
|
||||
<!DEBUG_INFO_EXPRESSION_TYPE("kotlin.collections.List<kotlin.Int>?")!>result_3<!>
|
||||
<!DEBUG_INFO_EXPRESSION_TYPE("kotlin.collections.List<(kotlin.Int..kotlin.Int?)>?")!>result_3<!>
|
||||
<!DEBUG_INFO_EXPRESSION_TYPE("kotlin.collections.List<kotlin.Int>?")!>result_4<!>
|
||||
<!DEBUG_INFO_EXPRESSION_TYPE("A<(kotlin.collections.MutableList<(kotlin.Int..kotlin.Int?)>..kotlin.collections.List<(kotlin.Int..kotlin.Int?)>?)>")!>result_5<!>
|
||||
<!DEBUG_INFO_EXPRESSION_TYPE("A<kotlin.collections.MutableList<kotlin.Int>>")!>result_6<!>
|
||||
@@ -241,8 +240,8 @@ fun case_13() {
|
||||
<!DEBUG_INFO_EXPRESSION_TYPE("dynamic")!>result_5<!>
|
||||
<!DEBUG_INFO_EXPRESSION_TYPE("dynamic")!>result_6<!>
|
||||
<!DEBUG_INFO_EXPRESSION_TYPE("A<(kotlin.collections.MutableList<(kotlin.Int..kotlin.Int?)>..kotlin.collections.List<(kotlin.Int..kotlin.Int?)>?)>")!>result_7<!>
|
||||
<!DEBUG_INFO_EXPRESSION_TYPE("A<dynamic>")!>result_8<!>
|
||||
<!DEBUG_INFO_EXPRESSION_TYPE("A<dynamic>")!>result_9<!>
|
||||
<!DEBUG_INFO_EXPRESSION_TYPE("A<(kotlin.collections.MutableList<(kotlin.Int..kotlin.Int?)>..kotlin.collections.List<(kotlin.Int..kotlin.Int?)>?)>")!>result_8<!>
|
||||
<!DEBUG_INFO_EXPRESSION_TYPE("A<(kotlin.collections.MutableList<(kotlin.Int..kotlin.Int?)>..kotlin.collections.List<(kotlin.Int..kotlin.Int?)>?)>")!>result_9<!>
|
||||
<!DEBUG_INFO_EXPRESSION_TYPE("A<kotlin.collections.MutableList<kotlin.Int>>")!>result_10<!>
|
||||
<!DEBUG_INFO_EXPRESSION_TYPE("A<kotlin.collections.List<kotlin.Int>?>")!>result_11<!>
|
||||
<!DEBUG_INFO_EXPRESSION_TYPE("A<dynamic>")!>result_12<!>
|
||||
@@ -262,12 +261,12 @@ fun case_14() {
|
||||
val result_7 = select(A(x3), A(x1), A(x2))
|
||||
val result_8 = select(A(x1), A(x3))
|
||||
|
||||
<!DEBUG_INFO_EXPRESSION_TYPE("(kotlin.collections.List<kotlin.Any?>..kotlin.collections.List<kotlin.Any?>?)")!>result_1<!>
|
||||
<!DEBUG_INFO_EXPRESSION_TYPE("(kotlin.collections.List<kotlin.Any?>..kotlin.collections.List<kotlin.Any?>?)")!>result_2<!>
|
||||
<!DEBUG_INFO_EXPRESSION_TYPE("kotlin.collections.List<kotlin.Any?>?")!>result_3<!>
|
||||
<!DEBUG_INFO_EXPRESSION_TYPE("(kotlin.collections.MutableList<out kotlin.Any?>?..kotlin.collections.List<kotlin.Any?>?)")!>result_4<!>
|
||||
<!DEBUG_INFO_EXPRESSION_TYPE("A<out (kotlin.collections.List<kotlin.Any?>..kotlin.collections.List<kotlin.Any?>?)>")!>result_5<!>
|
||||
<!DEBUG_INFO_EXPRESSION_TYPE("A<out (kotlin.collections.List<kotlin.Any?>..kotlin.collections.List<kotlin.Any?>?)>")!>result_6<!>
|
||||
<!DEBUG_INFO_EXPRESSION_TYPE("A<out kotlin.collections.List<kotlin.Any?>?>")!>result_7<!>
|
||||
<!DEBUG_INFO_EXPRESSION_TYPE("A<out (kotlin.collections.MutableList<out kotlin.Any?>?..kotlin.collections.List<kotlin.Any?>?)>")!>result_8<!>
|
||||
<!DEBUG_INFO_EXPRESSION_TYPE("(kotlin.collections.List<kotlin.Any?>..kotlin.collections.List<*>?)")!>result_1<!>
|
||||
<!DEBUG_INFO_EXPRESSION_TYPE("(kotlin.collections.List<kotlin.Any?>..kotlin.collections.List<*>?)")!>result_2<!>
|
||||
<!DEBUG_INFO_EXPRESSION_TYPE("(kotlin.collections.List<kotlin.Any?>?..kotlin.collections.List<*>?)")!>result_3<!>
|
||||
<!DEBUG_INFO_EXPRESSION_TYPE("(kotlin.collections.MutableList<out kotlin.Any?>?..kotlin.collections.List<*>?)")!>result_4<!>
|
||||
<!DEBUG_INFO_EXPRESSION_TYPE("A<out (kotlin.collections.List<kotlin.Any?>..kotlin.collections.List<*>?)>")!>result_5<!>
|
||||
<!DEBUG_INFO_EXPRESSION_TYPE("A<out (kotlin.collections.List<kotlin.Any?>..kotlin.collections.List<*>?)>")!>result_6<!>
|
||||
<!DEBUG_INFO_EXPRESSION_TYPE("A<out (kotlin.collections.List<kotlin.Any?>?..kotlin.collections.List<*>?)>")!>result_7<!>
|
||||
<!DEBUG_INFO_EXPRESSION_TYPE("A<out (kotlin.collections.MutableList<out kotlin.Any?>?..kotlin.collections.List<*>?)>")!>result_8<!>
|
||||
}
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// !LANGUAGE: -NewInference +MixedNamedArgumentsInTheirOwnPosition
|
||||
// !LANGUAGE: +MixedNamedArgumentsInTheirOwnPosition
|
||||
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
||||
// SKIP_TXT
|
||||
|
||||
|
||||
+4
-4
@@ -1,4 +1,4 @@
|
||||
// !LANGUAGE: -NewInference +MixedNamedArgumentsInTheirOwnPosition
|
||||
// !LANGUAGE: +MixedNamedArgumentsInTheirOwnPosition
|
||||
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
||||
// SKIP_TXT
|
||||
|
||||
@@ -9,11 +9,11 @@ fun foo(
|
||||
) {}
|
||||
|
||||
fun main() {
|
||||
foo(p1 = 1, <!MIXING_NAMED_AND_POSITIONED_ARGUMENTS!>"2"<!>, <!MIXING_NAMED_AND_POSITIONED_ARGUMENTS!>3.0<!><!NO_VALUE_FOR_PARAMETER, NO_VALUE_FOR_PARAMETER!>)<!>
|
||||
foo(1, p2 = "2", <!MIXING_NAMED_AND_POSITIONED_ARGUMENTS!>3.0<!><!NO_VALUE_FOR_PARAMETER!>)<!>
|
||||
foo(p1 = 1, "2", 3.0)
|
||||
foo(1, p2 = "2", 3.0)
|
||||
foo(1, "2", p3 = 3.0)
|
||||
|
||||
foo(p1 = 1, p2 = "2", <!MIXING_NAMED_AND_POSITIONED_ARGUMENTS!>3.0<!><!NO_VALUE_FOR_PARAMETER!>)<!>
|
||||
foo(p1 = 1, p2 = "2", 3.0)
|
||||
|
||||
foo(1, p3 = 2.0, <!MIXING_NAMED_AND_POSITIONED_ARGUMENTS!>""<!><!NO_VALUE_FOR_PARAMETER!>)<!>
|
||||
foo(1, p3 = 2.0, <!MIXING_NAMED_AND_POSITIONED_ARGUMENTS!>3.0<!><!NO_VALUE_FOR_PARAMETER!>)<!>
|
||||
|
||||
-1
@@ -1,5 +1,4 @@
|
||||
// FIR_IDENTICAL
|
||||
// !LANGUAGE: -NewInference
|
||||
// !DIAGNOSTICS: -UNUSED_PARAMETER -UNUSED_VARIABLE -UNUSED_EXPRESSION
|
||||
// ISSUE: KT-11265
|
||||
|
||||
|
||||
Generated
-6
@@ -16883,12 +16883,6 @@ public class DiagnosticTestGenerated extends AbstractDiagnosticTest {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/substitutions/kt32189returnTypeWithTypealiasSubtitution.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt32189returnTypeWithTypealiasSubtitutionOldInference.kt")
|
||||
public void testKt32189returnTypeWithTypealiasSubtitutionOldInference() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/inference/substitutions/kt32189returnTypeWithTypealiasSubtitutionOldInference.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt6081SubstituteIntoClassCorrectly.kt")
|
||||
public void testKt6081SubstituteIntoClassCorrectly() throws Exception {
|
||||
|
||||
-1
@@ -1,4 +1,3 @@
|
||||
// !LANGUAGE: +NewInference
|
||||
// !DIAGNOSTICS: -UNUSED_VARIABLE -ASSIGNED_BUT_NEVER_ACCESSED_VARIABLE -UNUSED_VALUE -UNUSED_PARAMETER -UNUSED_EXPRESSION
|
||||
// SKIP_TXT
|
||||
|
||||
|
||||
-1
@@ -1,4 +1,3 @@
|
||||
// !LANGUAGE: -NewInference
|
||||
// !DIAGNOSTICS: -UNUSED_VARIABLE -ASSIGNED_BUT_NEVER_ACCESSED_VARIABLE -UNUSED_VALUE -UNUSED_PARAMETER -UNUSED_EXPRESSION
|
||||
// SKIP_TXT
|
||||
|
||||
|
||||
+1
-2
@@ -1,4 +1,3 @@
|
||||
// !LANGUAGE: -NewInference
|
||||
// !DIAGNOSTICS: -UNUSED_VARIABLE -ASSIGNED_BUT_NEVER_ACCESSED_VARIABLE -UNUSED_VALUE -UNUSED_PARAMETER -UNUSED_EXPRESSION
|
||||
// SKIP_TXT
|
||||
|
||||
@@ -31,7 +30,7 @@ import testPackCase1.I4.Companion.foo
|
||||
class Case1() : I2, I1, I3, I4 {
|
||||
|
||||
fun test() {
|
||||
<!TYPE_INFERENCE_NO_INFORMATION_FOR_PARAMETER!>foo<!>(1)
|
||||
<!NEW_INFERENCE_NO_INFORMATION_FOR_PARAMETER!>foo<!>(1)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user