Skip to content

Commit

Permalink
Repaired deprecation warnings for Scala 3.4
Browse files Browse the repository at this point in the history
  • Loading branch information
devlaam committed Mar 14, 2024
1 parent 68b92e9 commit 8e90509
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions shared/src/main/scala/s2a/leucine/actors/base/actor.scala
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ trait Actor :

object Actor :
/** Having children defines the parent */
type Parent = Actor with FamilyParent
type Parent = Actor & FamilyParent

/** This is the base type for all your mail. */
trait Letter[Sender <: Actor] :
Expand Down Expand Up @@ -206,7 +206,7 @@ object Actor :

object Post :
def apply(receiver: String) = new Post(Mail.Empty,receiver,"","")
def apply(mail: Mail, receiver: String, letter: Actor.Letter[_], sender: Actor) = new Post(mail,receiver,letter.toString,sender.path)
def apply(mail: Mail, receiver: String, letter: Actor.Letter[?], sender: Actor) = new Post(mail,receiver,letter.toString,sender.path)

/**
* Use the Anonymous Actor as a sender if you do not have a context or do want to reveal yourself.
Expand Down

0 comments on commit 8e90509

Please sign in to comment.