Fix case in stdlib where more specific type lead to error
See #KT-30299 & #KT-32125
This commit is contained in:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user