Add test for obsolete issue
The problem was fixed in d51bb2c053
#KT-37692 Obsolete
This commit is contained in:
+5
@@ -19501,6 +19501,11 @@ public class FirOldFrontendDiagnosticsTestGenerated extends AbstractFirOldFronte
|
||||
runTest("compiler/testData/diagnostics/tests/resolve/overloadConflicts/kt31758_compat.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt37692.kt")
|
||||
public void testKt37692() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/resolve/overloadConflicts/kt37692.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("numberOfDefaults.kt")
|
||||
public void testNumberOfDefaults() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/resolve/overloadConflicts/numberOfDefaults.kt");
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
||||
|
||||
abstract class Bar<T>
|
||||
|
||||
class Foo<T> : Bar<T>(), Comparable<Foo<*>> {
|
||||
override fun compareTo(other: Foo<*>): Int = TODO()
|
||||
}
|
||||
|
||||
infix fun <T : Comparable<T>, S : T?> Bar<in S>.test(t: T) { }
|
||||
infix fun <T : Comparable<T>, S : T?> Bar<in S>.test(other: Bar<in S>) {}
|
||||
|
||||
fun checkFunctions(exp1: Foo<Int?>, exp2: Foo<Int>) {
|
||||
exp1.<!AMBIGUITY!>test<!>(exp2)
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
||||
|
||||
abstract class Bar<T>
|
||||
|
||||
class Foo<T> : Bar<T>(), Comparable<Foo<*>> {
|
||||
override fun compareTo(other: Foo<*>): Int = TODO()
|
||||
}
|
||||
|
||||
infix fun <T : Comparable<T>, S : T?> Bar<in S>.test(t: T) { }
|
||||
infix fun <T : Comparable<T>, S : T?> Bar<in S>.test(other: Bar<in S>) {}
|
||||
|
||||
fun checkFunctions(exp1: Foo<Int?>, exp2: Foo<Int>) {
|
||||
exp1.test(exp2)
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
package
|
||||
|
||||
public fun checkFunctions(/*0*/ exp1: Foo<kotlin.Int?>, /*1*/ exp2: Foo<kotlin.Int>): kotlin.Unit
|
||||
public infix fun </*0*/ T : kotlin.Comparable<T>, /*1*/ S : T?> Bar<in S>.test(/*0*/ other: Bar<in S>): kotlin.Unit
|
||||
public infix fun </*0*/ T : kotlin.Comparable<T>, /*1*/ S : T?> Bar<in S>.test(/*0*/ t: T): kotlin.Unit
|
||||
|
||||
public abstract class Bar</*0*/ T> {
|
||||
public constructor Bar</*0*/ T>()
|
||||
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 Foo</*0*/ T> : Bar<T>, kotlin.Comparable<Foo<*>> {
|
||||
public constructor Foo</*0*/ T>()
|
||||
public open override /*1*/ fun compareTo(/*0*/ other: Foo<*>): kotlin.Int
|
||||
public open override /*2*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public open override /*2*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*2*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
@@ -19513,6 +19513,11 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTestWithFirVali
|
||||
runTest("compiler/testData/diagnostics/tests/resolve/overloadConflicts/kt31758_compat.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt37692.kt")
|
||||
public void testKt37692() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/resolve/overloadConflicts/kt37692.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("numberOfDefaults.kt")
|
||||
public void testNumberOfDefaults() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/resolve/overloadConflicts/numberOfDefaults.kt");
|
||||
|
||||
Generated
+5
@@ -19503,6 +19503,11 @@ public class DiagnosticsUsingJavacTestGenerated extends AbstractDiagnosticsUsing
|
||||
runTest("compiler/testData/diagnostics/tests/resolve/overloadConflicts/kt31758_compat.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt37692.kt")
|
||||
public void testKt37692() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/resolve/overloadConflicts/kt37692.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("numberOfDefaults.kt")
|
||||
public void testNumberOfDefaults() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/resolve/overloadConflicts/numberOfDefaults.kt");
|
||||
|
||||
Reference in New Issue
Block a user