Language feature for nullability assertions on enhanced nullability

This commit is contained in:
Dmitry Petrov
2017-10-24 13:17:28 +03:00
parent 313cd4f7bc
commit 6c47b4a39c
5 changed files with 27 additions and 2 deletions
@@ -106,6 +106,9 @@ class K2JVMCompilerArguments : CommonCompilerArguments() {
@Argument(value = "-Xno-param-assertions", description = "Don't generate not-null assertions on parameters of methods accessible from Java")
var noParamAssertions: Boolean by FreezableVar(false)
@Argument(value = "-Xstrict-java-nullability-assertions", description = "Generate nullability assertions for non-null Java expressions")
var strictJavaNullabilityAssertions: Boolean by FreezableVar(false)
@Argument(value = "-Xno-optimize", description = "Disable optimizations")
var noOptimize: Boolean by FreezableVar(false)