Skip to content

Commit

Permalink
Graph#Shape needs uncheckedVariance in 2.11
Browse files Browse the repository at this point in the history
  • Loading branch information
rkuhn committed Feb 27, 2015
1 parent fd621eb commit 91a0dbe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ class FlowGraphDocSpec extends AkkaSpec {
import FanInShape.Init

class PriorityWorkerPoolShape2[In, Out](_init: Init[Out] = Name("PriorityWorkerPool"))
extends FanInShape[Out](_init) {
extends FanInShape[Out](_init) {
protected override def construct(i: Init[Out]) = new PriorityWorkerPoolShape2(i)

val jobsIn = newInlet[In]("jobsIn")
Expand Down
3 changes: 2 additions & 1 deletion akka-stream/src/main/scala/akka/stream/Graph.scala
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@
package akka.stream

import akka.stream.impl.StreamLayout
import scala.annotation.unchecked.uncheckedVariance

trait Graph[+S <: Shape, +M] {
/**
* Type-level accessor for the shape parameter of this graph.
*/
type Shape = S
type Shape = S @uncheckedVariance
/**
* The shape of a graph is all that is externally visible: its inlets and outlets.
*/
Expand Down

0 comments on commit 91a0dbe

Please sign in to comment.