FIR: Fix capturing of flexible types

This commit is contained in:
Denis Zharkov
2020-01-29 15:30:17 +03:00
parent ac2b5beb4e
commit d28e1f156a
7 changed files with 29 additions and 9 deletions
@@ -8,6 +8,6 @@ interface A : Collection<String> {
}
fun foo(x: List<String>, y: A) {
x.stream().filter { it.length > 0 }.<!INAPPLICABLE_CANDIDATE!>collect<!>(Collectors.toList())
x.stream().filter { it.length > 0 }.collect(Collectors.toList())
y.stream().filter { it.length > 0 }
}