CLI: support false and true values for boolean -X arguments
#KT-48417 Fixed
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
$TESTDATA_DIR$/extraBooleanArgumentEqualsFalse.kt
|
||||
-d
|
||||
$TEMP_DIR$
|
||||
-Xallow-kotlin-package=false
|
||||
@@ -0,0 +1,3 @@
|
||||
package kotlin
|
||||
|
||||
class X
|
||||
@@ -0,0 +1,4 @@
|
||||
compiler/testData/cli/jvm/extraBooleanArgumentEqualsFalse.kt:1:1: error: only the Kotlin standard library is allowed to use the 'kotlin' package
|
||||
package kotlin
|
||||
^
|
||||
COMPILATION_ERROR
|
||||
@@ -0,0 +1,4 @@
|
||||
$TESTDATA_DIR$/extraBooleanArgumentEqualsFalse.kt
|
||||
-d
|
||||
$TEMP_DIR$
|
||||
-Xallow-kotlin-package=nonsense
|
||||
@@ -0,0 +1,3 @@
|
||||
error: no value expected for boolean argument -Xallow-kotlin-package. Please remove the value: -Xallow-kotlin-package=nonsense
|
||||
info: use -help for more information
|
||||
COMPILATION_ERROR
|
||||
@@ -0,0 +1,4 @@
|
||||
$TESTDATA_DIR$/extraBooleanArgumentEqualsTrue.kt
|
||||
-d
|
||||
$TEMP_DIR$
|
||||
-Xallow-kotlin-package=true
|
||||
@@ -0,0 +1,3 @@
|
||||
package kotlin
|
||||
|
||||
class X
|
||||
@@ -0,0 +1 @@
|
||||
OK
|
||||
Reference in New Issue
Block a user