K2: introduce OptIn language version checker

#KT-60598 Fixed
This commit is contained in:
Mikhail Glukhikh
2023-07-17 11:09:07 +02:00
committed by Space Team
parent 8c305d6143
commit 95bf63d6cb
29 changed files with 196 additions and 49 deletions
@@ -410,31 +410,61 @@ public class CliTestGenerated extends AbstractCliTest {
runTest("compiler/testData/cli/jvm/experimentalDeprecated.args");
}
@TestMetadata("experimentalDeprecatedK1.args")
public void testExperimentalDeprecatedK1() throws Exception {
runTest("compiler/testData/cli/jvm/experimentalDeprecatedK1.args");
}
@TestMetadata("experimentalDeprecatedWarning.args")
public void testExperimentalDeprecatedWarning() throws Exception {
runTest("compiler/testData/cli/jvm/experimentalDeprecatedWarning.args");
}
@TestMetadata("experimentalDeprecatedWarningK1.args")
public void testExperimentalDeprecatedWarningK1() throws Exception {
runTest("compiler/testData/cli/jvm/experimentalDeprecatedWarningK1.args");
}
@TestMetadata("experimentalIsNotAnnotation.args")
public void testExperimentalIsNotAnnotation() throws Exception {
runTest("compiler/testData/cli/jvm/experimentalIsNotAnnotation.args");
}
@TestMetadata("experimentalIsNotAnnotationK1.args")
public void testExperimentalIsNotAnnotationK1() throws Exception {
runTest("compiler/testData/cli/jvm/experimentalIsNotAnnotationK1.args");
}
@TestMetadata("experimentalIsNotMarker.args")
public void testExperimentalIsNotMarker() throws Exception {
runTest("compiler/testData/cli/jvm/experimentalIsNotMarker.args");
}
@TestMetadata("experimentalIsNotMarkerK1.args")
public void testExperimentalIsNotMarkerK1() throws Exception {
runTest("compiler/testData/cli/jvm/experimentalIsNotMarkerK1.args");
}
@TestMetadata("experimentalNested.args")
public void testExperimentalNested() throws Exception {
runTest("compiler/testData/cli/jvm/experimentalNested.args");
}
@TestMetadata("experimentalNestedK1.args")
public void testExperimentalNestedK1() throws Exception {
runTest("compiler/testData/cli/jvm/experimentalNestedK1.args");
}
@TestMetadata("experimentalUnresolved.args")
public void testExperimentalUnresolved() throws Exception {
runTest("compiler/testData/cli/jvm/experimentalUnresolved.args");
}
@TestMetadata("experimentalUnresolvedK1.args")
public void testExperimentalUnresolvedK1() throws Exception {
runTest("compiler/testData/cli/jvm/experimentalUnresolvedK1.args");
}
@TestMetadata("explicitlyDisableSamConversionsWithOldFlag.args")
public void testExplicitlyDisableSamConversionsWithOldFlag() throws Exception {
runTest("compiler/testData/cli/jvm/explicitlyDisableSamConversionsWithOldFlag.args");