Add test for obsolete issue

#KT-38161 Obsolete
This commit is contained in:
Mikhail Zarechenskiy
2020-06-05 16:28:00 +03:00
parent f9b3daabd1
commit 6c5806f971
6 changed files with 44 additions and 0 deletions
@@ -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");
@@ -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" }
}
@@ -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" }
}
@@ -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");
@@ -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");