Add test for obsolete issue
The issue was fixed in df1595e
#KT-39630 Fixed
This commit is contained in:
+5
@@ -13691,6 +13691,11 @@ public class FirOldFrontendDiagnosticsTestGenerated extends AbstractFirOldFronte
|
||||
runTest("compiler/testData/diagnostics/tests/j+k/sam/kt37920.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt39630.kt")
|
||||
public void testKt39630() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/j+k/sam/kt39630.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("privateCandidatesWithWrongArguments.kt")
|
||||
public void testPrivateCandidatesWithWrongArguments() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/j+k/sam/privateCandidatesWithWrongArguments.kt");
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
// FIR_IDENTICAL
|
||||
|
||||
// FILE: A.java
|
||||
|
||||
public class A<T> {
|
||||
public void add(T x) {}
|
||||
public static class B extends A<Runnable> {}
|
||||
}
|
||||
|
||||
// FILE: test.kt
|
||||
|
||||
fun test(x: A.B) {
|
||||
x.add { }
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
package
|
||||
|
||||
public fun test(/*0*/ x: A.B): kotlin.Unit
|
||||
|
||||
public open class A</*0*/ T : kotlin.Any!> {
|
||||
public constructor A</*0*/ T : kotlin.Any!>()
|
||||
public open fun add(/*0*/ x: T!): kotlin.Unit
|
||||
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 open class B : A<java.lang.Runnable!> {
|
||||
public constructor B()
|
||||
public open override /*1*/ /*fake_override*/ fun add(/*0*/ x: java.lang.Runnable!): kotlin.Unit
|
||||
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
|
||||
}
|
||||
}
|
||||
@@ -13698,6 +13698,11 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTestWithFirVali
|
||||
runTest("compiler/testData/diagnostics/tests/j+k/sam/kt37920.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt39630.kt")
|
||||
public void testKt39630() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/j+k/sam/kt39630.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("privateCandidatesWithWrongArguments.kt")
|
||||
public void testPrivateCandidatesWithWrongArguments() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/j+k/sam/privateCandidatesWithWrongArguments.kt");
|
||||
|
||||
Generated
+5
@@ -13693,6 +13693,11 @@ public class DiagnosticsUsingJavacTestGenerated extends AbstractDiagnosticsUsing
|
||||
runTest("compiler/testData/diagnostics/tests/j+k/sam/kt37920.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt39630.kt")
|
||||
public void testKt39630() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/j+k/sam/kt39630.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("privateCandidatesWithWrongArguments.kt")
|
||||
public void testPrivateCandidatesWithWrongArguments() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/j+k/sam/privateCandidatesWithWrongArguments.kt");
|
||||
|
||||
Reference in New Issue
Block a user