Skip to content

Add two explicit type arguments to make it compatible with SIP-56.#101

Open
sjrd wants to merge 1 commit intojohnhungerford:masterfrom
sjrd:prepare-for-sip-56-match-types
Open

Add two explicit type arguments to make it compatible with SIP-56.#101
sjrd wants to merge 1 commit intojohnhungerford:masterfrom
sjrd:prepare-for-sip-56-match-types

Conversation

@sjrd
Copy link
Copy Markdown

@sjrd sjrd commented Dec 8, 2023

The new match types of SIP-56 feature a stricter check to prevent some run-time unsoundness. This affects the line that is changed here. For example, for the second .head call, the type argument was previously inferred to RV & (F *: vts). The previous check that was too relaxed let it through, although RV is not fully defined. We still obtain valid code by passing the new explicit type arguments instead.

The new match types of SIP-56 feature a stricter check to prevent
some run-time unsoundness. This affects the line that is changed
here. For example, for the second `.head` call, the type argument
was previously inferred to `RV & (F *: vts)`. The previous check
that was too relaxed let it through, although `RV` is not fully
defined. We still obtain valid code by passing the new explicit
type arguments instead.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant