[NI-MIGRATE] Update CLI tests

This commit is contained in:
Mikhail Zarechenskiy
2020-02-13 09:23:37 +03:00
parent ca57d6cd16
commit cd0012c527
5 changed files with 20 additions and 9 deletions
@@ -7,7 +7,7 @@ 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/newInferenceImpliesSamConversions.kt:4:9: error: type mismatch: inferred type is () -> Unit but Runnable was expected
foo { }
compiler/testData/cli/jvm/newInferenceImpliesSamConversions.kt:1:9: warning: parameter 'r' is never used
fun foo(r: Runnable) {}
^
COMPILATION_ERROR
OK
@@ -1,4 +1,4 @@
compiler/testData/cli/jvm/newInferenceImpliesSamConversions.kt:4:9: error: type mismatch: inferred type is () -> Unit but Runnable was expected
foo { }
compiler/testData/cli/jvm/newInferenceImpliesSamConversions.kt:1:9: warning: parameter 'r' is never used
fun foo(r: Runnable) {}
^
COMPILATION_ERROR
OK
@@ -1,4 +1,5 @@
$TESTDATA_DIR$/standaloneSamConversionsAreEnabledWithNewInference.kt
-d
$TEMP_DIR$
-Xnew-inference -XXLanguage\:-SamConversionPerArgument
-Xnew-inference
-XXLanguage\:-SamConversionPerArgument
@@ -1,4 +1,12 @@
warning: flag is not supported by this version of the compiler: -Xnew-inference -XXLanguage:-SamConversionPerArgument
warning: ATTENTION!
This build uses unsafe internal compiler arguments:
-XXLanguage:-SamConversionPerArgument
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/standaloneSamConversionsAreEnabledWithNewInference.kt:9:25: error: type mismatch: inferred type is () -> Unit but Runnable was expected
ForceSam.compare(r, {})
^
@@ -1,3 +1,5 @@
$TESTDATA_DIR$/standaloneSamConversionsAreEnabledWithNewInference.kt
-d
$TEMP_DIR$
$TEMP_DIR$
-language-version
1.3