Open NightBlues opened 7 months ago
Yes, it is a kind of false positive. This happens because zanuda analyses typedtree, i.e. the code after macro expansion. This happens also with other syntax extension, AFAIR ppx_show.
The proper way to fix it would be to lookup for function
in the parsetree at the same location where it is found in typedtree, but this is not currently implemented.
Code like this
triggers
Using 'function' is recommended
alert, though we can't really rewrite this withfunction
.