Get rid of obsolete syntax in quickfixes changing lambda's signature
- Do not wrap parameters with '()' - Do not set return type for them - Fix existing testData
This commit is contained in:
@@ -2,5 +2,5 @@
|
||||
// DISABLE-ERRORS
|
||||
|
||||
fun f(x: Int, y: Int, z : () -> Int) {
|
||||
f(1, 2, {(x: Int, y: Int<caret>) -> x});
|
||||
f(1, 2, {x: Int, y: Int<caret> -> x});
|
||||
}
|
||||
|
||||
@@ -2,5 +2,5 @@
|
||||
// DISABLE-ERRORS
|
||||
|
||||
fun f(x: Int, y: Int, z : (Int, Int?, Any) -> Int) {
|
||||
f(1, 2, {(<caret>x: Int) -> x});
|
||||
f(1, 2, {<caret>x: Int -> x});
|
||||
}
|
||||
|
||||
+1
-1
@@ -2,5 +2,5 @@
|
||||
// DISABLE-ERRORS
|
||||
|
||||
fun f(x: Int, y: Int, z : (Int, Int?, Any) -> Int) {
|
||||
f(1, 2, {(i: Int, i1: Int?, any: Any) -> x});
|
||||
f(1, 2, { i: Int, i1: Int?, any: Any -> x});
|
||||
}
|
||||
|
||||
@@ -5,5 +5,5 @@ fun foo(f: Int.(Int, Int) -> Int) {
|
||||
}
|
||||
|
||||
fun test() {
|
||||
foo { <caret>(a: Int) -> 0 }
|
||||
foo { <caret>a: Int -> 0 }
|
||||
}
|
||||
+1
-1
@@ -5,5 +5,5 @@ fun foo(f: Int.(Int, Int) -> Int) {
|
||||
}
|
||||
|
||||
fun test() {
|
||||
foo {(i: Int, i1: Int) -> 0 }
|
||||
foo { i: Int, i1: Int -> 0 }
|
||||
}
|
||||
+1
-1
@@ -2,5 +2,5 @@
|
||||
// DISABLE-ERRORS
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
Test<String>().perform("") {(s: String?, s1: String?) -> }
|
||||
Test<String>().perform("") { s: String?, s1: String? -> }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user