You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If a constructor pattern or a polymorphic actual parameter does not mention some named parameter, it could be introduced to the environment or not. Currently implemented rules are not very consistent:
data T = C of {`n : Int}
let f C = `n (* is valid, because `n was implicitly introduced *)
let g (C { module M }) = `n (* Unbound implicit `n *)
nor intuitive:
let f (g : ({x} -> _) -> _) = g x (* is valid, since x was implicitly introduced *)
We should develop more clear, consistent, and intuitive rules how this feature should behave.
The text was updated successfully, but these errors were encountered:
If a constructor pattern or a polymorphic actual parameter does not mention some named parameter, it could be introduced to the environment or not. Currently implemented rules are not very consistent:
nor intuitive:
We should develop more clear, consistent, and intuitive rules how this feature should behave.
The text was updated successfully, but these errors were encountered: