Minor, improve CLI test internalArgOverrideOffLanguageFeature
Avoid disabling language features which cannot be disabled anymore.
This commit is contained in:
committed by
Mikhael Bogdanov
parent
262c9e88d1
commit
d36c56497e
@@ -1,5 +1,5 @@
|
||||
$TESTDATA_DIR$/inlineClass.kt
|
||||
$TESTDATA_DIR$/languageVersion.kt
|
||||
-d
|
||||
$TEMP_DIR$
|
||||
-XXLanguage\:+InlineClasses
|
||||
-XXLanguage\:-InlineClasses
|
||||
-XXLanguage\:+SealedInterfaces
|
||||
-XXLanguage\:-SealedInterfaces
|
||||
|
||||
@@ -1,12 +1,13 @@
|
||||
warning: ATTENTION!
|
||||
This build uses unsafe internal compiler arguments:
|
||||
|
||||
-XXLanguage:-InlineClasses
|
||||
-XXLanguage:-SealedInterfaces
|
||||
|
||||
This mode is not recommended for production use,
|
||||
as no stability/compatibility guarantees are given on
|
||||
compiler or generated code. Use it at your own risk!
|
||||
|
||||
error: the following features cannot be disabled manually, because the version they first appeared in is no longer supported:
|
||||
InlineClasses
|
||||
compiler/testData/cli/jvm/languageVersion.kt:3:1: error: the feature "sealed interfaces" is disabled
|
||||
sealed interface Polygon
|
||||
^
|
||||
COMPILATION_ERROR
|
||||
|
||||
Reference in New Issue
Block a user