Redeclaration for same file in different files

This commit is contained in:
Nikolay Krasko
2013-12-25 15:48:00 +04:00
parent 6e25582019
commit 559f212cfc
2 changed files with 16 additions and 0 deletions
@@ -0,0 +1,11 @@
// FILE: f1.kt
package test
class <!REDECLARATION!>A<!>
class F1
// FILE: f2.kt
package test
class <!REDECLARATION!>A<!>
class F2
@@ -5241,6 +5241,11 @@ public class JetDiagnosticsTestGenerated extends AbstractJetDiagnosticsTest {
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), "org.jetbrains.jet.generators.tests.TestsPackage", new File("compiler/testData/diagnostics/tests/redeclarations"), Pattern.compile("^(.+)\\.kt$"), true);
}
@TestMetadata("ClassRedeclarationInDifferentFiles.kt")
public void testClassRedeclarationInDifferentFiles() throws Exception {
doTest("compiler/testData/diagnostics/tests/redeclarations/ClassRedeclarationInDifferentFiles.kt");
}
@TestMetadata("ConflictingExtensionProperties.kt")
public void testConflictingExtensionProperties() throws Exception {
doTest("compiler/testData/diagnostics/tests/redeclarations/ConflictingExtensionProperties.kt");