testdata for IDEA-157350

This commit is contained in:
Anna Kozlova
2017-05-10 20:16:41 +03:00
parent be5d8b9af1
commit 728ed62ed0
2 changed files with 19 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
class MyTest {
static Map<String, Meeting> getMeetingsById(List<Meeting> meetings){
return <error descr="Incompatible types. Required Map<String, Meeting> but 'collect' was inferred to R:
no instance(s) of type variable(s) A, A, K, R, T exist so that List<T> conforms to Meeting">meetings.stream()
.collect(Collectors.groupingBy(Meeting::getId));</error>
}
}
class Meeting {
String getId() {
return null;
}
}