Do not report warning if -XXLanguage turns on bugfix
KT-25554 Fixed
This commit is contained in:
committed by
Dmitry Savvinov
parent
e42017a468
commit
6dacd1011f
@@ -1,5 +1,5 @@
|
||||
warning: ATTENTION!
|
||||
This build uses internal compiler arguments:
|
||||
This build uses unsafe internal compiler arguments:
|
||||
|
||||
-XXLanguage:-SoundSmartCastsAfterTry
|
||||
|
||||
|
||||
@@ -1,12 +1,3 @@
|
||||
warning: ATTENTION!
|
||||
This build uses internal compiler arguments:
|
||||
|
||||
-XXLanguage:+
|
||||
|
||||
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!
|
||||
|
||||
warning: empty language feature name for internal argument '-XXLanguage:+'
|
||||
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?
|
||||
some.length
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
warning: ATTENTION!
|
||||
This build uses internal compiler arguments:
|
||||
This build uses unsafe internal compiler arguments:
|
||||
|
||||
-XXLanguage:+SoundSmartCastsAfterTry
|
||||
|
||||
|
||||
@@ -1,12 +1,3 @@
|
||||
warning: ATTENTION!
|
||||
This build uses internal compiler arguments:
|
||||
|
||||
-XXLanguage:SoundSmartCastAfterTry
|
||||
|
||||
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!
|
||||
|
||||
warning: incorrect internal argument syntax, missing modificator: -XXLanguage:SoundSmartCastAfterTry
|
||||
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?
|
||||
some.length
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
$TESTDATA_DIR$/simple.kt
|
||||
-d
|
||||
$TEMP_DIR$
|
||||
-language-version
|
||||
1.2
|
||||
-XXLanguage:+ProhibitDataClassesOverridingCopy
|
||||
@@ -0,0 +1 @@
|
||||
OK
|
||||
@@ -1,12 +1,3 @@
|
||||
warning: ATTENTION!
|
||||
This build uses internal compiler arguments:
|
||||
|
||||
-XXLanguage:+UnknownFeature
|
||||
|
||||
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!
|
||||
|
||||
warning: unknown language feature 'UnknownFeature' in passed internal argument '-XXLanguage:+UnknownFeature'
|
||||
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?
|
||||
some.length
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
warning: ATTENTION!
|
||||
This build uses internal compiler arguments:
|
||||
This build uses unsafe internal compiler arguments:
|
||||
|
||||
-XXLanguage:+SoundSmartCastsAfterTry
|
||||
|
||||
|
||||
Reference in New Issue
Block a user