We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Does the application of solutions need to be scoped? Add the following test case:
((dt1 : data) -> _x) _x ((dt2 : data) -> dt2) _x
inference creates a new type variable dt and substitutes dt1 |-> dt and dt2 |-> dt:
((dt : data) -> _x) _x ((dt : data) -> dt) _x
then inference creates a constraint _x ~ dt resulting in the substitution _x |-> dt applying this substitution globally gives
_x ~ dt
_x |-> dt
((dt : data) -> dt) dt ((dt : data) -> dt) dt
however note that here the function argument dt is not bound: the expression is ill-scoped.
dt
The text was updated successfully, but these errors were encountered:
umazalakain
No branches or pull requests
Does the application of solutions need to be scoped? Add the following test case:
inference creates a new type variable dt and substitutes dt1 |-> dt and dt2 |-> dt:
then inference creates a constraint
_x ~ dt
resulting in the substitution_x |-> dt
applying this substitution globally giveshowever note that here the function argument
dt
is not bound: the expression is ill-scoped.The text was updated successfully, but these errors were encountered: