[k1/K2]: Mark @SubclassOptInRequired as an experimental
At the moment, SubclassOptInRequired is marked with the ExperimentalSubclassOptIn annotation. However, it does not work as expected due to a missing opt-in error. To use SubclassOptInRequired, an explicit opt-in is necessary because SubclassOptInRequired is an unstable feature now. ^KT-64739
This commit is contained in:
committed by
Space Team
parent
882dc18e0e
commit
ad9025afa6
+6
@@ -42229,6 +42229,12 @@ public class DiagnosticCompilerTestFE10TestdataTestGenerated extends AbstractDia
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/annotations/subclassOptInRequired/CorrectApplicability.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("Experimentality.kt")
|
||||
public void testExperimentality() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/annotations/subclassOptInRequired/Experimentality.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("IncorrectApplicability.kt")
|
||||
public void testIncorrectApplicability() throws Exception {
|
||||
|
||||
+6
@@ -42229,6 +42229,12 @@ public class LLFirPreresolvedReversedDiagnosticCompilerFE10TestDataTestGenerated
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/annotations/subclassOptInRequired/CorrectApplicability.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("Experimentality.kt")
|
||||
public void testExperimentality() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/annotations/subclassOptInRequired/Experimentality.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("IncorrectApplicability.kt")
|
||||
public void testIncorrectApplicability() throws Exception {
|
||||
|
||||
Reference in New Issue
Block a user