Fix handling of lambdas in top-level destructuring declarations
This commit is contained in:
@@ -2,4 +2,5 @@
|
||||
fun Int.isOdd() = (this % 2) == 1
|
||||
val list: List<Pair<Int, String>> = listOf(1 to "a", 2 to "b")
|
||||
val (odds, evens) = list.partition { (i, _) -> i.isOdd() }
|
||||
println(odds)
|
||||
odds
|
||||
|
||||
Reference in New Issue
Block a user