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
Example:
case class Type(name: String) @newtype case class Foo(value: List[Type]) val value: List[Type] = List(Type("abc")) Foo(value)
The code does not compile due to the following error:
type mismatch; found : List[Type] required: List[Foo.Type]
The simplest solution is to rename all type aliases to avoid the possibility of name collision (like prefixing them with $).
$
type $Base = ... type $Repr = ... type $Type = ... type $Tag = ...
Currently, as a workaround, the user can create an alias (if changing the name isn't an option), and the code would work as expected:
type TType = Type @newtype case class Foo(value: List[TType])
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Example:
The code does not compile due to the following error:
The simplest solution is to rename all type aliases to avoid the possibility of name collision (like prefixing them with
$
).Currently, as a workaround, the user can create an alias (if changing the name isn't an option), and the code would work as expected:
The text was updated successfully, but these errors were encountered: