estatico / scala-newtype

NewTypes for Scala with no runtime overhead
Apache License 2.0
540 stars 31 forks source link

Inconsistent type alias expansion #8

Closed carymrobbins closed 6 years ago

carymrobbins commented 6 years ago

It seems that encoding newtypes with a "normal" type alias means that scalac can expand it at will. We need to change the encoding from

type Type[..] = Base with Tag[..]

to

type Type[..] <: Base with Tag[..]

See https://github.com/scala/bug/issues/10750

carymrobbins commented 6 years ago

Fixed in release 0.3.0