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
This commit is contained in:
Tagir Valeev
2017-11-22 14:33:42 +07:00
parent 80e63e20fc
commit d47671a183
3 changed files with 31 additions and 0 deletions
@@ -0,0 +1,15 @@
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 -> x.getN<caret>)
}
}