Files
openide/java/java-tests/testData/codeInsight/completion/normal/StreamIncompleteDfa_after.java
Tagir Valeev d47671a183 Test for IDEA-181794 Suggest completion items with type casts in stream chains
The functionality was implemented automatically after a combination of earlier commits: 9fedf66f and 80e63e2
2017-11-22 14:33:42 +07:00

15 lines
288 B
Java

import java.util.List;
import java.util.Set;
class Boo {
}
class Foo extends Boo {
String getName() { return "_name_"; }
}
class Test {
Set<String> getAllNames(List<Boo> items) {
return items.stream().filter(x -> x instanceof Foo).map(x -> ((Foo) x).getName())
}
}