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:
@@ -0,0 +1,5 @@
|
||||
$TESTDATA_DIR$/apiVersionAndSinceNewerKotlin.kt
|
||||
-d
|
||||
$TEMP_DIR$
|
||||
-api-version
|
||||
1.0
|
||||
@@ -0,0 +1,5 @@
|
||||
@SinceKotlin("1.0")
|
||||
fun old() {}
|
||||
|
||||
@SinceKotlin("1.1")
|
||||
fun new() {}
|
||||
@@ -0,0 +1,4 @@
|
||||
compiler/testData/cli/jvm/apiVersionAndSinceNewerKotlin.kt:4:1: warning: the version is greater than the specified API version 1.0
|
||||
@SinceKotlin("1.1")
|
||||
^
|
||||
OK
|
||||
Reference in New Issue
Block a user