Uncomment warning about -Xopt-in deprecation
This commit is contained in:
committed by
TeamCityServer
parent
1fe7a1ebb3
commit
37b95972db
+3
-4
@@ -389,10 +389,9 @@ abstract class CommonCompilerArguments : CommonToolArguments() {
|
|||||||
}
|
}
|
||||||
val optInDeprecatedFqNames = optInDeprecated?.toList().orEmpty()
|
val optInDeprecatedFqNames = optInDeprecated?.toList().orEmpty()
|
||||||
if (optInDeprecatedFqNames.isNotEmpty()) {
|
if (optInDeprecatedFqNames.isNotEmpty()) {
|
||||||
// TODO: uncomment this after -opt-in bootstrapping and Gradle script fixing
|
collector.report(
|
||||||
// collector.report(
|
WARNING, "'-Xopt-in' is deprecated and will be removed in a future release, please use -opt-in instead"
|
||||||
// WARNING, "'-Xopt-in' is deprecated and will be removed in a future release, please use -opt-in instead"
|
)
|
||||||
// )
|
|
||||||
}
|
}
|
||||||
put(AnalysisFlags.optIn, useExperimentalFqNames + optInDeprecatedFqNames + optIn?.toList().orEmpty())
|
put(AnalysisFlags.optIn, useExperimentalFqNames + optInDeprecatedFqNames + optIn?.toList().orEmpty())
|
||||||
put(AnalysisFlags.expectActualLinker, expectActualLinker)
|
put(AnalysisFlags.expectActualLinker, expectActualLinker)
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
warning: '-Xuse-experimental' is deprecated and will be removed in a future release, please use -opt-in instead
|
warning: '-Xuse-experimental' is deprecated and will be removed in a future release, please use -opt-in instead
|
||||||
|
warning: '-Xopt-in' is deprecated and will be removed in a future release, please use -opt-in instead
|
||||||
warning: opt-in requirement marker org.test.Warning is deprecated. Warning
|
warning: opt-in requirement marker org.test.Warning is deprecated. Warning
|
||||||
OK
|
OK
|
||||||
|
|||||||
@@ -2,4 +2,4 @@ $TESTDATA_DIR$/unrestrictedBuilderInference.kt
|
|||||||
-d
|
-d
|
||||||
$TEMP_DIR$
|
$TEMP_DIR$
|
||||||
-Xunrestricted-builder-inference
|
-Xunrestricted-builder-inference
|
||||||
-Xopt-in=kotlin.RequiresOptIn
|
-opt-in=kotlin.RequiresOptIn
|
||||||
|
|||||||
@@ -1646,7 +1646,7 @@ linkTest("initializers_sharedVarInInitBlock") {
|
|||||||
|
|
||||||
standaloneTest("initializers_static") {
|
standaloneTest("initializers_static") {
|
||||||
source = "codegen/initializers/static.kt"
|
source = "codegen/initializers/static.kt"
|
||||||
flags = ['-Xopt-in=kotlin.native.internal.InternalForKotlinNative', "-tr"]
|
flags = ['-opt-in=kotlin.native.internal.InternalForKotlinNative', "-tr"]
|
||||||
}
|
}
|
||||||
|
|
||||||
task arithmetic_basic(type: KonanLocalTest) {
|
task arithmetic_basic(type: KonanLocalTest) {
|
||||||
|
|||||||
Reference in New Issue
Block a user