Allowed shorthand parameter list with type reference in lambda.

This commit is contained in:
Stanislav Erokhin
2015-03-11 18:59:54 +03:00
parent 7a8341d0f1
commit c24c3daf54
7 changed files with 259 additions and 13 deletions
@@ -3,7 +3,7 @@ fun test(some: (Int) -> Int) {
fun foo() = test() { it }
val function = test {(a: Int) -> a }
val function1 = test { a : Int -> a }
val function1 = test { a: Int -> a }
val function2 = test { }
val function3 = test {}
val function4 = test { }