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:
Denis Zharkov
2015-09-24 17:58:23 +03:00
parent 31d2aa23f5
commit 1d90b2e1fe
41 changed files with 61 additions and 58 deletions
@@ -1,5 +1,5 @@
fun test() {
SamTest.test(Foo<String, Int> { (s, n) -> "" })
SamTest.test(Foo { (s: MutableList<X<Int>>, n: X<MutableSet<String>>) -> "" })
SamTest.test(Foo { (s: MutableList<X<Int>>, n: X<MutableSet<String>>): X<MutableList<String>>? -> "" })
SamTest.test(Foo<String, Int> { s, n -> "" })
SamTest.test(Foo { s: MutableList<X<Int>>, n: X<MutableSet<String>> -> "" })
SamTest.test(Foo { s: MutableList<X<Int>>, n: X<MutableSet<String>> -> "" })
}