[NI-MIGRATE] Update CLI tests
This commit is contained in:
@@ -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
|
||||
|
||||
Vendored
+2
-1
@@ -1,4 +1,5 @@
|
||||
$TESTDATA_DIR$/standaloneSamConversionsAreEnabledWithNewInference.kt
|
||||
-d
|
||||
$TEMP_DIR$
|
||||
-Xnew-inference -XXLanguage\:-SamConversionPerArgument
|
||||
-Xnew-inference
|
||||
-XXLanguage\:-SamConversionPerArgument
|
||||
|
||||
Vendored
+9
-1
@@ -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
|
||||
Reference in New Issue
Block a user