We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
This works:
final class Two[A, B]() final class Bla object Test { type Foo[X] = X match case Two[Bla, _] => String case Two[String, _] => Int def test: Foo[Two[String, String]] = 1 }
But if I add a type parameter to Bla, then it doesn't work anymore:
final class Two[A, B]() final class Bla[A] object Test { type Foo[X] = X match case Two[Bla[_], _] => String case Two[String, _] => Int def test: Foo[Two[String, String]] = 1 }
-- [E007] Type Mismatch Error: try/i8644.scala:28:39 --------------------------- 28 | def test: Foo[Two[String, String]] = 1 | ^ | Found: (1 : Int) | Required: Test.Foo[Two[String, String]]
The text was updated successfully, but these errors were encountered:
2a7296e
Merge pull request #8704 from dotty-staging/fix-8647
29cca16
Fix #8647: Remove TypeParamRef from instantiated test
OlivierBlanvillain
No branches or pull requests
This works:
But if I add a type parameter to Bla, then it doesn't work anymore:
The text was updated successfully, but these errors were encountered: