From 111c0e55b8b87951c9f9cafd93b99768cc81d67d Mon Sep 17 00:00:00 2001 From: Andrey Breslav Date: Fri, 6 Jun 2014 23:02:16 +0400 Subject: [PATCH] Extra test for the case of error types in detecting duplicate signatures --- .../functionAndProperty/withErrorTypes.kt | 4 ++++ .../jetbrains/jet/checkers/JetDiagnosticsTestGenerated.java | 5 +++++ 2 files changed, 9 insertions(+) create mode 100644 compiler/testData/diagnostics/tests/duplicateJvmSignature/functionAndProperty/withErrorTypes.kt diff --git a/compiler/testData/diagnostics/tests/duplicateJvmSignature/functionAndProperty/withErrorTypes.kt b/compiler/testData/diagnostics/tests/duplicateJvmSignature/functionAndProperty/withErrorTypes.kt new file mode 100644 index 00000000000..4cda9be3e44 --- /dev/null +++ b/compiler/testData/diagnostics/tests/duplicateJvmSignature/functionAndProperty/withErrorTypes.kt @@ -0,0 +1,4 @@ +trait T { + val x: ErrorType + fun getX(): ErrorType1 +} \ 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 7b4cb76dfc2..a60fcfd51ad 100644 --- a/compiler/tests/org/jetbrains/jet/checkers/JetDiagnosticsTestGenerated.java +++ b/compiler/tests/org/jetbrains/jet/checkers/JetDiagnosticsTestGenerated.java @@ -2799,6 +2799,11 @@ public class JetDiagnosticsTestGenerated extends AbstractJetDiagnosticsTest { doTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/functionAndProperty/trait.kt"); } + @TestMetadata("withErrorTypes.kt") + public void testWithErrorTypes() throws Exception { + doTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/functionAndProperty/withErrorTypes.kt"); + } + } @TestMetadata("compiler/testData/diagnostics/tests/duplicateJvmSignature/specialNames")