From 1d1d959e278a5b72ae27ffeca0e7821a6cff674a Mon Sep 17 00:00:00 2001 From: Ilmir Usmanov Date: Tue, 17 Jul 2018 23:09:56 +0300 Subject: [PATCH] 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. Original commit: cf1f194f8bc61887474bcefaa60dc0d74658f8f0 --- .../src/org/jetbrains/kotlin/config/KotlinFacetSettings.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jps/jps-common/src/org/jetbrains/kotlin/config/KotlinFacetSettings.kt b/jps/jps-common/src/org/jetbrains/kotlin/config/KotlinFacetSettings.kt index a8a05a54087..35d34a6fdea 100644 --- a/jps/jps-common/src/org/jetbrains/kotlin/config/KotlinFacetSettings.kt +++ b/jps/jps-common/src/org/jetbrains/kotlin/config/KotlinFacetSettings.kt @@ -54,7 +54,7 @@ object CoroutineSupport { fun byCompilerArgumentsOrNull(arguments: CommonCompilerArguments?): LanguageFeature.State? = when (arguments?.coroutinesState) { CommonCompilerArguments.ENABLE -> LanguageFeature.State.ENABLED - CommonCompilerArguments.WARN -> LanguageFeature.State.ENABLED_WITH_WARNING + CommonCompilerArguments.WARN, CommonCompilerArguments.DEFAULT -> LanguageFeature.State.ENABLED_WITH_WARNING CommonCompilerArguments.ERROR -> LanguageFeature.State.ENABLED_WITH_ERROR else -> null }