EA-114349 Fix bug when trace collecting for large int values throws NPE

This commit is contained in:
Vitaliy.Bibaev
2017-12-27 17:01:27 +03:00
committed by Yan Zhulanow
parent 7cd1baff9d
commit fbc2a5d9a7
3 changed files with 12 additions and 3 deletions
@@ -0,0 +1,8 @@
package distinct
fun main(args: Array<String>) {
// Breakpoint!
val seq = (22..25).map { it * it }.asSequence()
.distinctBy { it.toString().first() }
.count()
}