Ticket #192 (new bug report)
Opened 3 years ago
Incorrect position information
| Reported by: | NeilMitchell2 | Owned by: | nibro |
|---|---|---|---|
| Priority: | major | Milestone: | |
| Component: | parser | Version: | 1.8.x |
| Keywords: | Cc: | ndmitchell@… |
Description
Given the module:
foo = x where x = 1 y = 2
The SrcInfo? on the PatBind? for foo extends to the very beginning of the y, so srcSpanEndLine = 5, rather than 1.
Niklas replied:
I can see how that can be problematic, but formally the scope of the where actually extends as far as to the y, where the implicit } is located. That said, I can't think of a situation where that behavior is actually what you want. So I guess misfeature, rather than bug. I'll have a look at it, but I fear it could be quite hard to get right.
Note: See
TracTickets for help on using
tickets.
