johnhungerford / generic-schema

2 stars 1 forks source link

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

Open sjrd opened 10 months ago

sjrd commented 10 months ago

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.