'sealed' is now not 'final' by default + related code changes #KT-10266 Fixed

This commit is contained in:
Mikhail Glukhikh
2015-12-07 19:08:30 +03:00
parent 5b72afe8a0
commit c73f01927a
11 changed files with 85 additions and 13 deletions
@@ -14300,6 +14300,12 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/sealed/WhenOnEmptySealed.kt");
doTest(fileName);
}
@TestMetadata("WithInterface.kt")
public void testWithInterface() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/sealed/WithInterface.kt");
doTest(fileName);
}
}
@TestMetadata("compiler/testData/diagnostics/tests/secondaryConstructors")
@@ -15132,6 +15138,12 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest {
doTest(fileName);
}
@TestMetadata("openInSealed.kt")
public void testOpenInSealed() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/smartCasts/openInSealed.kt");
doTest(fileName);
}
@TestMetadata("ownerDeclaresBothModifies.kt")
public void testOwnerDeclaresBothModifies() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/smartCasts/ownerDeclaresBothModifies.kt");