[NI] Fix diagnostic reporting and unveil problem wrt captured types
This commit is contained in:
+1
-1
@@ -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]
|
||||
}
|
||||
Reference in New Issue
Block a user