Skip to content

Commit

Permalink
Merge pull request #342 from nafg/entitykey-askeyof
Browse files Browse the repository at this point in the history
EntityKey#asKeyOf
  • Loading branch information
nafg authored Jan 23, 2024
2 parents eba3ea1 + 5dc7757 commit ad38fd3
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ case class EntityKey[K, +A](override val key: K) extends Lookup[K, A] {
override def updated[B](value: B) = ModifiedEntity(key, value)
override def widen[B >: A]: EntityKey[K, B] = transform(identity)
override def toEntityKey = this
def asKeyOf[B] = copy[K, B]()
}

sealed trait Entity[K, +A] extends EntityRef[K, A] {
Expand Down

0 comments on commit ad38fd3

Please sign in to comment.