pjfanning commented on code in PR #3060:
URL: https://github.com/apache/pekko/pull/3060#discussion_r3409443495


##########
actor-testkit-typed/src/test/scala/org/apache/pekko/actor/testkit/typed/scaladsl/BehaviorTestKitSpec.scala:
##########
@@ -126,7 +126,8 @@ object BehaviorTestKitSpec {
               replyTo ! Done
               Behaviors.same
             case CreateMessageAdapter(messageClass, f, replyTo) =>
-              val adaptor = context.messageAdapter(f)(ClassTag(messageClass))
+              implicit val ct: ClassTag[Any] = ClassTag(messageClass)
+              val adaptor = context.messageAdapter[Any](f.asInstanceOf[Any => 
Command])

Review Comment:
   it's ok to make this change but the casting seems weird and could be a bug 
in scala 3.8



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to