Report a warning or error if an old language version or API version is used

#KT-25823 Fixed
This commit is contained in:
Alexander Udalov
2018-08-17 21:13:55 +02:00
committed by Ilya Gorbunov
parent db29eadba5
commit 02a9b03007
37 changed files with 94 additions and 76 deletions
@@ -151,6 +151,16 @@ public class CliTestGenerated extends AbstractCliTest {
runTest("compiler/testData/cli/jvm/coroutinesWarn.args");
}
@TestMetadata("deprecatedApiVersion.args")
public void testDeprecatedApiVersion() throws Exception {
runTest("compiler/testData/cli/jvm/deprecatedApiVersion.args");
}
@TestMetadata("deprecatedLanguageVersion.args")
public void testDeprecatedLanguageVersion() throws Exception {
runTest("compiler/testData/cli/jvm/deprecatedLanguageVersion.args");
}
@TestMetadata("diagnosticsOrder.args")
public void testDiagnosticsOrder() throws Exception {
runTest("compiler/testData/cli/jvm/diagnosticsOrder.args");