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
deusaquilus
changed the title
Bizzare use of a binding fixes tuple-matching macro
Unneeded use of a binding fixes functional tuple-matching macro
Sep 5, 2022
deusaquilus
changed the title
Unneeded use of a binding fixes functional tuple-matching macro
Unneeded use of a binding fixes tuple-matching macro that should work without it
Sep 5, 2022
Compiler version
3.2.0 (also 3.1.3)
Minimized code
Let's say we write a macro that takes apart a tuple into
h *: t
and puts this into a specialized class HeadTail in order to make it easier to match.Then we attempt to use it like so:
An error will occur:
However if we just add a bogus binding e.g.
bogusBinding @
then the whole thing will work:Expectation
The same thing should happen in both cases (i.e. the sample should work)
Repo
Code can be found here:
https://github.com/deusaquilus/headtail-macro-fail
The text was updated successfully, but these errors were encountered: