Add a fallback flag -Xno-unified-null-checks for KT-22275

#KT-41482 Fixed
This commit is contained in:
Alexander Udalov
2020-08-28 21:10:22 +02:00
parent 40669350f7
commit 5e48be3d11
14 changed files with 35 additions and 16 deletions
@@ -352,6 +352,12 @@ class K2JVMCompilerArguments : CommonCompilerArguments() {
)
var noKotlinNothingValueException: Boolean by FreezableVar(false)
@Argument(
value = "-Xno-unified-null-checks",
description = "Use pre-1.4 exception types in null checks instead of java.lang.NPE. See KT-22275 for more details"
)
var noUnifiedNullChecks: Boolean by FreezableVar(false)
@Argument(
value = "-Xprofile",
valueDescription = "<profilerPath:command:outputDir>",