[IDE-NI-MIGRATE] [BAD] Migrate testdata of Intention tests
Issues: - #KT-31263 Bad tests: - SamConversionToAnonymousObject.testSimple3 - ConvertReferenceToLambda.testIf1 - ConvertReferenceToLambda.testIf2 - ConvertReferenceToLambda.testIf3 - ConvertReferenceToLambda.testIf4 - ConvertReferenceToLambda.testWhen1 - ConvertReferenceToLambda.testWhen2 - ConvertReferenceToLambda.testWhen3 - ConvertReferenceToLambda.testWhen4 - ConvertLambdaToReference.testVarargFunction2
This commit is contained in:
committed by
Mikhail Zarechenskiy
parent
1a085516b0
commit
3d5593c70c
@@ -1,3 +1,5 @@
|
||||
// COMPILER_ARGUMENTS: -XXLanguage:-NewInference
|
||||
|
||||
val s = Sam<caret> { b ->
|
||||
if (b) return@Sam "x"
|
||||
"y"
|
||||
|
||||
+2
@@ -1,3 +1,5 @@
|
||||
// COMPILER_ARGUMENTS: -XXLanguage:-NewInference
|
||||
|
||||
val s = object : Sam {
|
||||
override fun test(b: Boolean): String {
|
||||
if (b) return "x"
|
||||
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
public interface Sam {
|
||||
String test(Boolean b);
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
public interface Sam {
|
||||
String test(Boolean b);
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
// COMPILER_ARGUMENTS: -XXLanguage:+NewInference
|
||||
|
||||
val s = Sam<caret> { b ->
|
||||
if (b) return@Sam "x"
|
||||
"y"
|
||||
}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
// COMPILER_ARGUMENTS: -XXLanguage:+NewInference
|
||||
|
||||
val s = object : Sam {
|
||||
override fun test(b: Boolean): String? {
|
||||
if (b) return "x"
|
||||
return "y"
|
||||
}
|
||||
}
|
||||
@@ -1 +1,3 @@
|
||||
// COMPILER_ARGUMENTS: -XXLanguage:-NewInference
|
||||
|
||||
val a = <caret>A<Int, String> { "" }
|
||||
@@ -1,3 +1,5 @@
|
||||
// COMPILER_ARGUMENTS: -XXLanguage:-NewInference
|
||||
|
||||
val a = object : A<Int, String> {
|
||||
override fun foo(it: Int): String {
|
||||
return ""
|
||||
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
public interface A <T, U> {
|
||||
U foo(T x);
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
public interface A <T, U> {
|
||||
U foo(T x);
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
// COMPILER_ARGUMENTS: -XXLanguage:+NewInference
|
||||
|
||||
val a = <caret>A<Int, String> { "" }
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
// COMPILER_ARGUMENTS: -XXLanguage:+NewInference
|
||||
|
||||
val a = object : A<Int, String> {
|
||||
override fun foo(it: Int): String? {
|
||||
return ""
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user