make FlowOps(Mat).Repr(Mat) safe and precise

This commit is contained in:
Roland Kuhn 2015-12-30 21:15:04 +01:00
parent cf1a5611a8
commit ec3858e893
4 changed files with 45 additions and 25 deletions

View file

@ -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] =