Java Flow dsl lower bounds incorrect #24368
This commit is contained in:
parent
a53a09e6ba
commit
d8b9bb1b3a
14 changed files with 199 additions and 126 deletions
|
|
@ -43,10 +43,21 @@ public class FlowTest extends StreamTest {
|
|||
super(actorSystemResource);
|
||||
}
|
||||
|
||||
@ClassRule
|
||||
@ClassRule
|
||||
public static AkkaJUnitActorSystemResource actorSystemResource = new AkkaJUnitActorSystemResource("FlowTest",
|
||||
AkkaSpec.testConf());
|
||||
|
||||
interface Fruit {}
|
||||
static class Apple implements Fruit {};
|
||||
static class Orange implements Fruit {};
|
||||
|
||||
public void compileOnlyUpcast() {
|
||||
Flow<Apple, Apple, NotUsed> appleFlow = null;
|
||||
Flow<Apple, Fruit, NotUsed> appleFruitFlow = Flow.upcast(appleFlow);
|
||||
|
||||
Flow<Apple, Fruit, NotUsed> fruitFlow = appleFruitFlow.intersperse(new Orange());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void mustBeAbleToUseSimpleOperators() {
|
||||
final TestKit probe = new TestKit(system);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue