make FlowOps(Mat).Repr(Mat) safe and precise
This commit is contained in:
parent
cf1a5611a8
commit
ec3858e893
4 changed files with 45 additions and 25 deletions
|
|
@ -922,10 +922,9 @@ object GraphDSL extends GraphApply {
|
|||
|
||||
def to[Mat2](sink: Graph[SinkShape[Out], Mat2]): Closed =
|
||||
super.~>(sink)(b)
|
||||
|
||||
}
|
||||
|
||||
private class DisabledPortOps[Out, Mat](msg: String) extends PortOpsImpl[Out](null, null) {
|
||||
private class DisabledPortOps[Out](msg: String) extends PortOpsImpl[Out](null, null) {
|
||||
override def importAndGetPort(b: Builder[_]): Outlet[Out] = throw new IllegalArgumentException(msg)
|
||||
|
||||
override def via[T, Mat2](flow: Graph[FlowShape[Out, T], Mat2]): Repr[T] =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue