-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Inline matches can't bind higher kinded types, match types can #5574
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
Labels
Comments
Will be visited as part of working on #5405. |
abgruszecki
added a commit
to dotty-staging/dotty
that referenced
this issue
Dec 23, 2018
Re-typing the pattern in GADT context is unnecessary - reducing the pattern will on its own perform the same subtyping checks.
abgruszecki
added a commit
to dotty-staging/dotty
that referenced
this issue
Dec 23, 2018
Re-typing the pattern in GADT context is unnecessary - reducing the pattern will on its own perform the same subtyping checks.
abgruszecki
added a commit
to dotty-staging/dotty
that referenced
this issue
Dec 23, 2018
Re-typing the pattern in GADT context is unnecessary - reducing the pattern will on its own perform the same subtyping checks. Previously if a pattern binding a HK type was inlined, a warning saying that its kind is different from the kind of its parameter was emitted _after_ preparing for reduction. This replaced the type of the Bind node with an error, preventing the bind from being located and narrowed when reducing the inline match.
abgruszecki
added a commit
to dotty-staging/dotty
that referenced
this issue
Dec 27, 2018
Re-typing the pattern in GADT context is unnecessary - reducing the pattern will on its own perform the same subtyping checks. Previously if a pattern binding a HK type was inlined, a warning saying that its kind is different from the kind of its parameter was emitted _after_ preparing for reduction. This replaced the type of the Bind node with an error, preventing the bind from being located and narrowed when reducing the inline match.
abgruszecki
added a commit
to dotty-staging/dotty
that referenced
this issue
Jan 3, 2019
Re-typing the pattern in GADT context is unnecessary - reducing the pattern will on its own perform the same subtyping checks. Previously if a pattern binding a HK type was inlined, a warning saying that its kind is different from the kind of its parameter was emitted _after_ preparing for reduction. This replaced the type of the Bind node with an error, preventing the bind from being located and narrowed when reducing the inline match.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The following fails to compile,
reporting,
However, the similar,
compiles as expected.
The text was updated successfully, but these errors were encountered: