Prohibit implicit overrides with lesser visibility
A non-abstract super-declaration is allowed to stand as 'an implementation' of a fake override only if its visibility is not less than visibilities of all other super-declarations #KT-2491 Fixed
This commit is contained in:
@@ -5342,6 +5342,11 @@ public class JetDiagnosticsTestGenerated extends AbstractJetDiagnosticsTest {
|
||||
doTest("compiler/testData/diagnostics/tests/override/kt2052.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt2491.kt")
|
||||
public void testKt2491() throws Exception {
|
||||
doTest("compiler/testData/diagnostics/tests/override/kt2491.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt4763.kt")
|
||||
public void testKt4763() throws Exception {
|
||||
doTest("compiler/testData/diagnostics/tests/override/kt4763.kt");
|
||||
|
||||
Reference in New Issue
Block a user