Add warning on -Xcoroutines flag use
The only case when warning is not reported is -Xcoroutines=default. But this is OK until the flag is removed completely.
This commit is contained in:
committed by
Ilya Gorbunov
parent
8f6d2b70a9
commit
cf1f194f8b
@@ -1 +1,2 @@
|
||||
warning: -Xcoroutines has no effect: coroutines are enabled anyway in 1.3 and beyond
|
||||
OK
|
||||
|
||||
+2
-4
@@ -1,4 +1,2 @@
|
||||
compiler/testData/cli/jvm/coroutines.kt:1:1: error: the feature "coroutines" is experimental and disabled (see: https://kotlinlang.org/docs/diagnostics/experimental-coroutines)
|
||||
suspend fun simple() = 5
|
||||
^
|
||||
COMPILATION_ERROR
|
||||
warning: -Xcoroutines has no effect: coroutines are enabled anyway in 1.3 and beyond
|
||||
OK
|
||||
|
||||
+2
-1
@@ -1,2 +1,3 @@
|
||||
warning: argument -Xcoroutines is passed multiple times. Only the last value will be used: enable
|
||||
OK
|
||||
warning: -Xcoroutines has no effect: coroutines are enabled anyway in 1.3 and beyond
|
||||
OK
|
||||
|
||||
+2
-4
@@ -1,4 +1,2 @@
|
||||
compiler/testData/cli/jvm/coroutines.kt:1:1: warning: the feature "coroutines" is experimental (see: https://kotlinlang.org/docs/diagnostics/experimental-coroutines)
|
||||
suspend fun simple() = 5
|
||||
^
|
||||
OK
|
||||
warning: -Xcoroutines has no effect: coroutines are enabled anyway in 1.3 and beyond
|
||||
OK
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
warning: language version 1.3 is experimental, there are no backwards compatibility guarantees for new language and library features
|
||||
compiler/testData/cli/jvm/releaseCoroutinesApiVersion1.2.kt:1:1: error: unsupported [cannot use release coroutines with api version less than 1.3]
|
||||
suspend fun dummy() {}
|
||||
^
|
||||
|
||||
Reference in New Issue
Block a user