CLI: remove obsolete -Xallow-result-return-type
This commit is contained in:
committed by
Space Team
parent
49c659b379
commit
9d5e1bdc47
-1
@@ -12,7 +12,6 @@ fun copyCommonCompilerArguments(from: CommonCompilerArguments, to: CommonCompile
|
||||
|
||||
to.allowAnyScriptsInSourceRoots = from.allowAnyScriptsInSourceRoots
|
||||
to.allowKotlinPackage = from.allowKotlinPackage
|
||||
to.allowResultReturnType = from.allowResultReturnType
|
||||
to.apiVersion = from.apiVersion
|
||||
to.autoAdvanceApiVersion = from.autoAdvanceApiVersion
|
||||
to.autoAdvanceLanguageVersion = from.autoAdvanceLanguageVersion
|
||||
|
||||
-11
@@ -341,16 +341,6 @@ They should be a subset of sources passed as free arguments."""
|
||||
field = value
|
||||
}
|
||||
|
||||
@Argument(
|
||||
value = "-Xallow-result-return-type",
|
||||
description = "Allow compiling code when 'kotlin.Result' is used as a return type."
|
||||
)
|
||||
var allowResultReturnType = false
|
||||
set(value) {
|
||||
checkFrozen()
|
||||
field = value
|
||||
}
|
||||
|
||||
@Argument(
|
||||
value = "-Xlist-phases",
|
||||
description = "List backend phases."
|
||||
@@ -810,7 +800,6 @@ The corresponding calls' declarations may not be marked with @BuilderInference."
|
||||
put(AnalysisFlags.optIn, useExperimentalFqNames + optIn?.toList().orEmpty())
|
||||
put(AnalysisFlags.skipExpectedActualDeclarationChecker, metadataKlib)
|
||||
put(AnalysisFlags.explicitApiVersion, apiVersion != null)
|
||||
put(AnalysisFlags.allowResultReturnType, allowResultReturnType)
|
||||
ExplicitApiMode.fromString(explicitApi)?.also { put(AnalysisFlags.explicitApiMode, it) } ?: collector.report(
|
||||
CompilerMessageSeverity.ERROR,
|
||||
"Unknown value for parameter -Xexplicit-api: '$explicitApi'. Value should be one of ${ExplicitApiMode.availableValues()}"
|
||||
|
||||
Reference in New Issue
Block a user