Remove assertion about dispatch receiver in scripts

#KT-42530 fixed
This commit is contained in:
Ilya Chernikov
2020-12-17 19:27:38 +01:00
parent 0671fd9aaa
commit 65cf941b9b
3 changed files with 17 additions and 1 deletions
@@ -0,0 +1,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() }
odds