Refactor external overidability conditions

Before this change they could only negatively affect on result
Now they may force success result

Also refine overridavility condition for java fields:
two java fields having the same name are seen as overrides even
if they have different type
This commit is contained in:
Denis Zharkov
2015-12-01 23:10:48 +03:00
parent 8838e46578
commit 4f06cece37
7 changed files with 89 additions and 15 deletions
@@ -9282,6 +9282,12 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest {
doTest(fileName);
}
@TestMetadata("fieldOverridesFieldOfDifferentType.kt")
public void testFieldOverridesFieldOfDifferentType() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/j+k/fieldOverridesFieldOfDifferentType.kt");
doTest(fileName);
}
@TestMetadata("fieldOverridesNothing.kt")
public void testFieldOverridesNothing() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/j+k/fieldOverridesNothing.kt");