Create DeprecatedLambdaSyntaxFix for whole project

This commit is contained in:
Stanislav Erokhin
2015-03-25 21:52:02 +03:00
parent 3fd8c5e980
commit f40b503454
10 changed files with 258 additions and 64 deletions
@@ -0,0 +1,8 @@
val h = { -> }
val l = @bar (
fun Int.bar() {
})
val s = (
fun (): Int = 5)()
@@ -0,0 +1,9 @@
// "Migrate lambda syntax in whole project" "true"
val a =
fun (): Int {
val b =
fun (): Int = 5
return b()
}
@@ -0,0 +1,8 @@
// "Migrate lambda syntax in whole project" "true"
val a = { <caret>(): Int ->
val b = { (): Int -> 5 }
b()
}
@@ -0,0 +1,5 @@
val h = { () -> }
val l = @bar { Int.() -> }
val s = {(): Int -> 5}()