-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Newtype name is always equal to "Type" in compiler errors #75
Comments
Do you have an example? That might be caused by the Scala compiler rather than the library. |
Bumping this, as we are experiencing a related issue in Tapir: softwaremill/tapir#3835 package object types {
type WidgetId = WidgetId.Type
object WidgetId {
type Repr = Int
type Base = Any { type WidgetId$newtype }
trait Tag extends Any
type Type <: Base with Tag
def apply(x: Int): WidgetId = x.asInstanceOf[WidgetId]
implicit final class Ops$newtype(val $this$: Type) extends AnyVal {
def toInt: Int = $this$.asInstanceOf[Int]
}
}
} the type WidgetIdType <: Base with Tag which shouldn't affect compatibility? |
|
Hi. Newtype name is always equal to "Type" in compiler errors.
Example is Either[Type, Type] where it has to be Either[UserId, UserUid].
Is it possible to get proper names?
The text was updated successfully, but these errors were encountered: