Allow using kotlin.Result as a return type in stdlib
This commit is contained in:
@@ -59,7 +59,8 @@ compileKotlinCommon {
|
||||
"-Xuse-experimental=kotlin.contracts.ExperimentalContracts",
|
||||
"-XXLanguage:+InlineClasses",
|
||||
"-XXLanguage:+ReleaseCoroutines",
|
||||
"-Xallow-kotlin-package"
|
||||
"-Xallow-kotlin-package",
|
||||
"-Xallow-result-return-type"
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -72,7 +73,8 @@ compileCoroutinesKotlinCommon {
|
||||
"-module-name", project.name+"-coroutines",
|
||||
"-Xuse-experimental=kotlin.contracts.ExperimentalContracts",
|
||||
"-XXLanguage:-ReleaseCoroutines",
|
||||
"-Xallow-kotlin-package"
|
||||
"-Xallow-kotlin-package",
|
||||
"-Xallow-result-return-type"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
@@ -128,6 +128,7 @@ tasks.withType(org.jetbrains.kotlin.gradle.tasks.Kotlin2JsCompile) {
|
||||
freeCompilerArgs = [
|
||||
"-version",
|
||||
"-Xallow-kotlin-package",
|
||||
"-Xallow-result-return-type"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
@@ -178,6 +178,7 @@ compileKotlin {
|
||||
freeCompilerArgs = [
|
||||
"-version",
|
||||
"-Xallow-kotlin-package",
|
||||
"-Xallow-result-return-type",
|
||||
"-Xmultifile-parts-inherit",
|
||||
"-Xnormalize-constructor-calls=enable",
|
||||
"-module-name", "kotlin-stdlib",
|
||||
@@ -213,6 +214,7 @@ compileCoroutinesKotlin {
|
||||
freeCompilerArgs = [
|
||||
"-version",
|
||||
"-Xallow-kotlin-package",
|
||||
"-Xallow-result-return-type",
|
||||
"-Xmultifile-parts-inherit",
|
||||
"-Xuse-experimental=kotlin.contracts.ExperimentalContracts",
|
||||
"-XXLanguage:-ReleaseCoroutines",
|
||||
|
||||
Reference in New Issue
Block a user