We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
package example trait Foo[T]: opaque type Type <: T = T class Bar extends Foo[String]: def bar(x: Type): Unit = ???
If I call ErasedTypeRef.erase on the type of arg x in bar it returns Any but it should return String.
ErasedTypeRef.erase
x
bar
Any
String
The text was updated successfully, but these errors were encountered:
A similar bug:
package example class Value[T](v: T) extends AnyVal class C[T <: Int]: def m(x: Value[T]): Unit = ???
ErasedTypeRef.erase on the type of x returns Object instead of Int
Object
Int
Sorry, something went wrong.
9eb273a
Merge pull request #406 from sjrd/fix-path-dependent-opaque-erasure
ee609d3
Fix #403: Take the prefix of opaque type aliases into account in erasure.
sjrd
No branches or pull requests
If I call
ErasedTypeRef.erase
on the type of argx
inbar
it returnsAny
but it should returnString
.The text was updated successfully, but these errors were encountered: