// !CHECK_TYPE // SKIP_TXT import java.util.stream.Collectors import java.util.stream.Stream fun test(a: Stream) { a.collect(Collectors.toList()) checkType { _>() } // actually the inferred type is platform a.collect(Collectors.toList()) checkType { _>() } }