提交 6c5806f9 编写于 作者: M Mikhail Zarechenskiy

Add test for obsolete issue

 #KT-38161 Obsolete
上级 f9b3daab
......@@ -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");
fun interface Bar {
fun invoke(): String
}
operator fun Bar.plus(b: Bar): String = invoke() + b.invoke()
fun box(): String {
return { "O" } <!INAPPLICABLE_CANDIDATE!>+<!> { "K" }
}
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" }
}
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");
......@@ -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");
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册