[NI] Fix diagnostic reporting and unveil problem wrt captured types

This commit is contained in:
Mikhail Zarechenskiy
2019-04-22 14:43:22 +03:00
parent 6826d2f193
commit abd1c3df26
12 changed files with 56 additions and 12 deletions
+1 -1
View File
@@ -6,6 +6,6 @@ import java.util.stream.IntStream
fun main() {
val xs = IntStream.<!INTERFACE_STATIC_METHOD_CALL_FROM_JAVA6_TARGET_ERROR!>range<!>(0, 10).mapToObj { it.toString() }
.collect(Collectors.toList())
.collect(<!NI;NEW_INFERENCE_ERROR!>Collectors.toList()<!>)
xs[0]
}