plain_fsm
plain_fsm copied to clipboard
Fix badmatch in xform
The function maybe_add_vsn_f/1 reused the variable Anno, which resulted in a badmatch when the data_vsn/1 callback is not present.
So shouldn't also Liine2
be made into an Anno?
Possibly. Probably, even. I did however have no issues running it as posted - and i was just trying to make a minimal change to have it work properly.
Do you want the PR amended with that, or will you make a better change on your end?
So it seems erl_anno:new() is a no-op, for both line-only and line+col notation. But it might not stay that way...so this should be reasonably future-prroof and readable.
Anything else i should fix to make this merge-able?
Sorry for the delay. Merged.