diff --git a/compiler/testData/diagnostics/tests/regressions/ea53340.kt b/compiler/testData/diagnostics/tests/regressions/ea53340.kt new file mode 100644 index 00000000000..2233489a722 --- /dev/null +++ b/compiler/testData/diagnostics/tests/regressions/ea53340.kt @@ -0,0 +1,7 @@ +class A : Function0 { + override fun invoke(): Int = 1 +} + +fun main(args : Array) { + A()() +} \ No newline at end of file diff --git a/compiler/testData/diagnostics/tests/regressions/ea53340.txt b/compiler/testData/diagnostics/tests/regressions/ea53340.txt new file mode 100644 index 00000000000..1d63bc533e5 --- /dev/null +++ b/compiler/testData/diagnostics/tests/regressions/ea53340.txt @@ -0,0 +1,11 @@ +package + +internal fun main(/*0*/ args: kotlin.Array): kotlin.Unit + +internal final class A : () -> kotlin.Int { + public constructor A() + 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*/ fun invoke(): kotlin.Int + public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String +} \ No newline at end of file diff --git a/compiler/tests/org/jetbrains/jet/checkers/JetDiagnosticsTestGenerated.java b/compiler/tests/org/jetbrains/jet/checkers/JetDiagnosticsTestGenerated.java index e732cf35eda..c691d8d40b0 100644 --- a/compiler/tests/org/jetbrains/jet/checkers/JetDiagnosticsTestGenerated.java +++ b/compiler/tests/org/jetbrains/jet/checkers/JetDiagnosticsTestGenerated.java @@ -8117,6 +8117,12 @@ public class JetDiagnosticsTestGenerated extends AbstractJetDiagnosticsTest { doTest(fileName); } + @TestMetadata("ea53340.kt") + public void testEa53340() throws Exception { + String fileName = JetTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/regressions/ea53340.kt"); + doTest(fileName); + } + @TestMetadata("ErrorsOnIbjectExpressionsAsParameters.kt") public void testErrorsOnIbjectExpressionsAsParameters() throws Exception { String fileName = JetTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/regressions/ErrorsOnIbjectExpressionsAsParameters.kt");