Add test for obsolete issue
#KT-38161 Obsolete
This commit is contained in:
+5
@@ -7954,6 +7954,11 @@ public class FirOldFrontendDiagnosticsTestGenerated extends AbstractFirOldFronte
|
||||
runTest("compiler/testData/diagnostics/tests/funInterface/basicFunInterfaceDisabled.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("funInterfaceConversionOnReceiver.kt")
|
||||
public void testFunInterfaceConversionOnReceiver() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/funInterface/funInterfaceConversionOnReceiver.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("funInterfaceDeclarationCheck.kt")
|
||||
public void testFunInterfaceDeclarationCheck() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/funInterface/funInterfaceDeclarationCheck.kt");
|
||||
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
fun interface Bar {
|
||||
fun invoke(): String
|
||||
}
|
||||
|
||||
operator fun Bar.plus(b: Bar): String = invoke() + b.invoke()
|
||||
|
||||
fun box(): String {
|
||||
return { "O" } <!INAPPLICABLE_CANDIDATE!>+<!> { "K" }
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
fun interface Bar {
|
||||
fun invoke(): String
|
||||
}
|
||||
|
||||
operator fun Bar.plus(b: Bar): String = invoke() + b.invoke()
|
||||
|
||||
fun box(): String {
|
||||
return { "O" } <!DEBUG_INFO_UNRESOLVED_WITH_TARGET, UNRESOLVED_REFERENCE_WRONG_RECEIVER!>+<!> { "K" }
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
package
|
||||
|
||||
public fun box(): kotlin.String
|
||||
public operator fun Bar.plus(/*0*/ b: Bar): kotlin.String
|
||||
|
||||
public fun interface Bar {
|
||||
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 abstract fun invoke(): kotlin.String
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
@@ -7961,6 +7961,11 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTestWithFirVali
|
||||
runTest("compiler/testData/diagnostics/tests/funInterface/basicFunInterfaceDisabled.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("funInterfaceConversionOnReceiver.kt")
|
||||
public void testFunInterfaceConversionOnReceiver() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/funInterface/funInterfaceConversionOnReceiver.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("funInterfaceDeclarationCheck.kt")
|
||||
public void testFunInterfaceDeclarationCheck() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/funInterface/funInterfaceDeclarationCheck.kt");
|
||||
|
||||
Generated
+5
@@ -7956,6 +7956,11 @@ public class DiagnosticsUsingJavacTestGenerated extends AbstractDiagnosticsUsing
|
||||
runTest("compiler/testData/diagnostics/tests/funInterface/basicFunInterfaceDisabled.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("funInterfaceConversionOnReceiver.kt")
|
||||
public void testFunInterfaceConversionOnReceiver() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/funInterface/funInterfaceConversionOnReceiver.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("funInterfaceDeclarationCheck.kt")
|
||||
public void testFunInterfaceDeclarationCheck() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/funInterface/funInterfaceDeclarationCheck.kt");
|
||||
|
||||
Reference in New Issue
Block a user