Skip to content

Conversation

liufengyun
Copy link
Contributor

Fix #5422: prefer type tp1 in Typ(tp1) - Prod(tp2, ...)

In Typ(tp1) - Prod(tp2, ...) with tp1 <: tp2, we rewrite
Typ(tp1) to Prod(tpx, Nil). We should prefer tp1 over
tp2, as the latter is usually a bigger space, due to the
erasure of pattern bound symbol references during
pattern-space projection.

In `Typ(tp1) - Prod(tp2, ...)` with `tp1 <: tp2`, we rewrite `Typ(tp1)` to `Prod(tpx, Nil)`. We should prefer `tp1` over `tp2`, as the latter is usually a bigger space, due to the erasure of pattern bound symbol references during pattern-space projection.
@abgruszecki abgruszecki merged commit 36281b3 into scala:master Nov 19, 2018
@abgruszecki abgruszecki deleted the fix-5422 branch November 19, 2018 09:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants