WojciechMazur commented on PR #1474:
URL: https://github.com/apache/pekko/pull/1474#issuecomment-2343546140

   > Not immediately obvious to me. Maybe someone can narrow it down to a 
minimal self-contained reproducer?
   
   Here's further minimization using both contravariant and covaraint param 
types
   ```scala
   import scala.annotation.unchecked.uncheckedVariance
   
   trait SubFlowDef[+F[+_]]
   final class Flow1[-In]{
     type Repr[+O] = Flow1[In @uncheckedVariance]
   }
   final class Flow2[+Out]{
     type Repr[+O] = Flow2[O]
   }
   class SubFlow[In, Out](
       delegate1: SubFlowDef[Flow1[In]#Repr],
       delegate2: SubFlowDef[Flow2[Out]#Repr] 
   )
   
   ```
   
   Signatures: 
   Scala 3.3.4-RC2  /  3.5.0
   ```scala
     public SubFlow(SubFlowDef<?>, SubFlowDef<Flow2>);
       descriptor: (LSubFlowDef;LSubFlowDef;)V
       Signature: #9                           // 
(LSubFlowDef<*>;LSubFlowDef<LFlow2;>;)V
   ```
   
   Scala 2.13
   ```scala
     public SubFlow(SubFlowDef<?>, SubFlowDef<?>);
       descriptor: (LSubFlowDef;LSubFlowDef;)V
       Signature: #12                          // 
(LSubFlowDef<*>;LSubFlowDef<*>;)V
   ```
   
   Scala 3.3.3 
   ```scala
     public SubFlow(SubFlowDef<Flow1<In>>, SubFlowDef<Flow2<java.lang.Object>>);
       descriptor: (LSubFlowDef;LSubFlowDef;)V
       Signature: #9                           // 
(LSubFlowDef<LFlow1<TIn;>;>;LSubFlowDef<LFlow2<Ljava/lang/Object;>;>;)V
   ```
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@pekko.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscr...@pekko.apache.org
For additional commands, e-mail: notifications-h...@pekko.apache.org

Reply via email to