Make tests on -XXLanguage more tolerant to 1.2 -> 1.3 transition
This commit is contained in:
@@ -1,6 +1,4 @@
|
|||||||
-language-version
|
$TESTDATA_DIR$/legacySmartCastsAfterTry.kt
|
||||||
1.3
|
|
||||||
-XXLanguage\:-InlineClasses
|
|
||||||
$TESTDATA_DIR$/inlineClass.kt
|
|
||||||
-d
|
-d
|
||||||
$TEMP_DIR$
|
$TEMP_DIR$
|
||||||
|
-XXLanguage\:-SoundSmartCastsAfterTry
|
||||||
@@ -1,14 +1,13 @@
|
|||||||
warning: ATTENTION!
|
warning: ATTENTION!
|
||||||
This build uses internal compiler arguments:
|
This build uses internal compiler arguments:
|
||||||
|
|
||||||
-XXLanguage:-InlineClasses
|
-XXLanguage:-SoundSmartCastsAfterTry
|
||||||
|
|
||||||
This mode is strictly prohibited for production use,
|
This mode is strictly prohibited for production use,
|
||||||
as no stability/compatibility guarantees are given on
|
as no stability/compatibility guarantees are given on
|
||||||
compiler or generated code. Use it at your own risk!
|
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/legacySmartCastsAfterTry.kt:2:25: warning: variable 'some' initializer is redundant
|
||||||
compiler/testData/cli/jvm/inlineClass.kt:1:1: error: the feature "inline classes" is disabled
|
var some: String? = null
|
||||||
inline class Foo(val x: Int)
|
^
|
||||||
^
|
OK
|
||||||
COMPILATION_ERROR
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
$TESTDATA_DIR$/inlineClass.kt
|
$TESTDATA_DIR$/legacySmartCastsAfterTry.kt
|
||||||
-d
|
-d
|
||||||
$TEMP_DIR$
|
$TEMP_DIR$
|
||||||
-XXLanguage\:+
|
-XXLanguage\:+
|
||||||
@@ -8,7 +8,7 @@ as no stability/compatibility guarantees are given on
|
|||||||
compiler or generated code. Use it at your own risk!
|
compiler or generated code. Use it at your own risk!
|
||||||
|
|
||||||
warning: empty language feature name for internal argument '-XXLanguage:+'
|
warning: empty language feature name for internal argument '-XXLanguage:+'
|
||||||
compiler/testData/cli/jvm/inlineClass.kt:1:1: error: the feature "inline classes" is only available since language version 1.3
|
compiler/testData/cli/jvm/legacySmartCastsAfterTry.kt:8:9: error: only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type String?
|
||||||
inline class Foo(val x: Int)
|
some.length
|
||||||
^
|
^
|
||||||
COMPILATION_ERROR
|
COMPILATION_ERROR
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
$TESTDATA_DIR$/inlineClass.kt
|
$TESTDATA_DIR$/legacySmartCastsAfterTry.kt
|
||||||
-d
|
-d
|
||||||
$TEMP_DIR$
|
$TEMP_DIR$
|
||||||
-language-version
|
-language-version
|
||||||
1.2
|
1.1
|
||||||
-XXLanguage\:+InlineClasses
|
-XXLanguage\:+SoundSmartCastsAfterTry
|
||||||
@@ -1,11 +1,13 @@
|
|||||||
warning: ATTENTION!
|
warning: ATTENTION!
|
||||||
This build uses internal compiler arguments:
|
This build uses internal compiler arguments:
|
||||||
|
|
||||||
-XXLanguage:+InlineClasses
|
-XXLanguage:+SoundSmartCastsAfterTry
|
||||||
|
|
||||||
This mode is strictly prohibited for production use,
|
This mode is strictly prohibited for production use,
|
||||||
as no stability/compatibility guarantees are given on
|
as no stability/compatibility guarantees are given on
|
||||||
compiler or generated code. Use it at your own risk!
|
compiler or generated code. Use it at your own risk!
|
||||||
|
|
||||||
warning: following manually enabled features will force generation of pre-release binaries: InlineClasses
|
compiler/testData/cli/jvm/legacySmartCastsAfterTry.kt:8:9: error: only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type String?
|
||||||
OK
|
some.length
|
||||||
|
^
|
||||||
|
COMPILATION_ERROR
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
$TESTDATA_DIR$/inlineClass.kt
|
$TESTDATA_DIR$/legacySmartCastsAfterTry.kt
|
||||||
-d
|
-d
|
||||||
$TEMP_DIR$
|
$TEMP_DIR$
|
||||||
-XXLanguage\:InlineClasses
|
-XXLanguage\:SoundSmartCastAfterTry
|
||||||
@@ -1,14 +1,14 @@
|
|||||||
warning: ATTENTION!
|
warning: ATTENTION!
|
||||||
This build uses internal compiler arguments:
|
This build uses internal compiler arguments:
|
||||||
|
|
||||||
-XXLanguage:InlineClasses
|
-XXLanguage:SoundSmartCastAfterTry
|
||||||
|
|
||||||
This mode is strictly prohibited for production use,
|
This mode is strictly prohibited for production use,
|
||||||
as no stability/compatibility guarantees are given on
|
as no stability/compatibility guarantees are given on
|
||||||
compiler or generated code. Use it at your own risk!
|
compiler or generated code. Use it at your own risk!
|
||||||
|
|
||||||
warning: incorrect internal argument syntax, missing modificator: -XXLanguage:InlineClasses
|
warning: incorrect internal argument syntax, missing modificator: -XXLanguage:SoundSmartCastAfterTry
|
||||||
compiler/testData/cli/jvm/inlineClass.kt:1:1: error: the feature "inline classes" is only available since language version 1.3
|
compiler/testData/cli/jvm/legacySmartCastsAfterTry.kt:8:9: error: only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type String?
|
||||||
inline class Foo(val x: Int)
|
some.length
|
||||||
^
|
^
|
||||||
COMPILATION_ERROR
|
COMPILATION_ERROR
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
$TESTDATA_DIR$/inlineClass.kt
|
$TESTDATA_DIR$/legacySmartCastsAfterTry.kt
|
||||||
-d
|
-d
|
||||||
$TEMP_DIR$
|
$TEMP_DIR$
|
||||||
-XXLanguage\:+UnknownFeature
|
-XXLanguage\:+UnknownFeature
|
||||||
@@ -8,7 +8,7 @@ as no stability/compatibility guarantees are given on
|
|||||||
compiler or generated code. Use it at your own risk!
|
compiler or generated code. Use it at your own risk!
|
||||||
|
|
||||||
warning: unknown language feature 'UnknownFeature' in passed internal argument '-XXLanguage:+UnknownFeature'
|
warning: unknown language feature 'UnknownFeature' in passed internal argument '-XXLanguage:+UnknownFeature'
|
||||||
compiler/testData/cli/jvm/inlineClass.kt:1:1: error: the feature "inline classes" is only available since language version 1.3
|
compiler/testData/cli/jvm/legacySmartCastsAfterTry.kt:8:9: error: only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type String?
|
||||||
inline class Foo(val x: Int)
|
some.length
|
||||||
^
|
^
|
||||||
COMPILATION_ERROR
|
COMPILATION_ERROR
|
||||||
|
|||||||
+2
-2
@@ -1,4 +1,4 @@
|
|||||||
$TESTDATA_DIR$/inlineClass.kt
|
$TESTDATA_DIR$/legacySmartCastsAfterTry.kt
|
||||||
-d
|
-d
|
||||||
$TEMP_DIR$
|
$TEMP_DIR$
|
||||||
-XX\:+InlineClasses
|
-XX\:+SoundSmartCastAfterTry
|
||||||
+4
-4
@@ -1,5 +1,5 @@
|
|||||||
warning: flag is not supported by this version of the compiler: -XX:+InlineClasses
|
warning: flag is not supported by this version of the compiler: -XX:+SoundSmartCastAfterTry
|
||||||
compiler/testData/cli/jvm/inlineClass.kt:1:1: error: the feature "inline classes" is only available since language version 1.3
|
compiler/testData/cli/jvm/legacySmartCastsAfterTry.kt:8:9: error: only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type String?
|
||||||
inline class Foo(val x: Int)
|
some.length
|
||||||
^
|
^
|
||||||
COMPILATION_ERROR
|
COMPILATION_ERROR
|
||||||
|
|||||||
Reference in New Issue
Block a user