Report warning when SinceKotlin value is greater than -api-version value
To prevent this diagnostic be reported in each test on SinceKotlin, disable it when a diagnostic test contains the "!API_VERSION" directive
This commit is contained in:
@@ -43,6 +43,12 @@ public class CliTestGenerated extends AbstractCliTest {
|
||||
doJvmTest(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("apiVersionAndSinceNewerKotlin.args")
|
||||
public void testApiVersionAndSinceNewerKotlin() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/cli/jvm/apiVersionAndSinceNewerKotlin.args");
|
||||
doJvmTest(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("apiVersionGreaterThanLanguage.args")
|
||||
public void testApiVersionGreaterThanLanguage() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/cli/jvm/apiVersionGreaterThanLanguage.args");
|
||||
|
||||
Reference in New Issue
Block a user