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()
|
||||
if (optInDeprecatedFqNames.isNotEmpty()) {
|
||||
// TODO: uncomment this after -opt-in bootstrapping and Gradle script fixing
|
||||
// collector.report(
|
||||
// WARNING, "'-Xopt-in' is deprecated and will be removed in a future release, please use -opt-in instead"
|
||||
// )
|
||||
collector.report(
|
||||
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.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: '-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
|
||||
OK
|
||||
|
||||
@@ -2,4 +2,4 @@ $TESTDATA_DIR$/unrestrictedBuilderInference.kt
|
||||
-d
|
||||
$TEMP_DIR$
|
||||
-Xunrestricted-builder-inference
|
||||
-Xopt-in=kotlin.RequiresOptIn
|
||||
-opt-in=kotlin.RequiresOptIn
|
||||
|
||||
@@ -1646,7 +1646,7 @@ linkTest("initializers_sharedVarInInitBlock") {
|
||||
|
||||
standaloneTest("initializers_static") {
|
||||
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) {
|
||||
|
||||
Reference in New Issue
Block a user