Scala 3.6 `opaque type` erases at runtime in pattern matching (`case u: UserId =>`) and matches unrelated opaque types over String
Language: Scala · Versions: Scala 3.6.2 The problem I defined two distinct opaque type aliases over String (opaque type UserId = String and opaque type OrderId = String) in…
2 posts ·