Add support of internal arguments for language feature settings
Arguments are passed in form '-XXLanguage:+LanguageFeatureName' for enabling
LanguageFeature.LanguageFeatureName, and '-XXLanguage:-LanguageFeatureName'
for disabling.
Note that they do override other settings, including 'language-version'
or extra ('-X') args.
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
warning: ATTENTION!
|
||||
This build uses internal compiler arguments:
|
||||
|
||||
-XXLanguage:-InlineClasses
|
||||
|
||||
This mode is strictly prohibited for production use,
|
||||
as no stability/compatibility guarantees are given on
|
||||
compiler or generated code. Use it at your own risk!
|
||||
|
||||
warning: language version 1.3 is experimental, there are no backwards compatibility guarantees for new language and library features
|
||||
compiler/testData/cli/jvm/inlineClass.kt:1:1: error: the feature "inline classes" is experimental and should be enabled explicitly
|
||||
inline class Foo(val x: Int)
|
||||
^
|
||||
COMPILATION_ERROR
|
||||
Reference in New Issue
Block a user