Allowed shorthand parameter list with type reference in lambda.
This commit is contained in:
@@ -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 { }
|
||||
|
||||
Reference in New Issue
Block a user