Fix case in stdlib where more specific type lead to error

See #KT-30299 & #KT-32125
This commit is contained in:
Mikhail Zarechenskiy
2020-02-11 12:35:10 +03:00
parent 599ff4711e
commit 17df92e999
@@ -24,7 +24,7 @@ import kotlin.test.*
class StreamsTest {
@Test fun toList() {
val data = arrayOf(1, 2L, 1.23, null)
val data = arrayOf<Any?>(1, 2L, 1.23, null)
val streamBuilder = { Stream.of(*data) }
assertEquals(data.asList(), streamBuilder().toList())