[Test] Update CLI tests according to new default language version

This commit is contained in:
Dmitriy Novozhilov
2021-01-13 14:35:44 +03:00
parent 5122e748c1
commit 73e6d42224
75 changed files with 616 additions and 324 deletions
@@ -1,13 +1,13 @@
warning: ATTENTION!
This build uses unsafe internal compiler arguments:
-XXLanguage:-SoundSmartCastsAfterTry
-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!
compiler/testData/cli/jvm/legacySmartCastsAfterTry.kt:2:25: warning: variable 'some' initializer is redundant
var some: String? = null
^
OK
compiler/testData/cli/jvm/internalArgDisableLanguageFeature.kt:1:1: error: modifier 'sealed' is not applicable to 'interface'
sealed interface A
^
COMPILATION_ERROR