Opened 5 years ago
Closed 5 years ago
#10446 closed bug (fixed)
Fix error message when variables in a static form are not in scope
Reported by: | facundo.dominguez | Owned by: | facundo.dominguez |
---|---|---|---|
Priority: | normal | Milestone: | 7.10.2 |
Component: | Compiler | Version: | 7.10.1 |
Keywords: | StaticPointers | Cc: | |
Operating System: | Unknown/Multiple | Architecture: | Unknown/Multiple |
Type of failure: | None/Unknown | Test Case: | |
Blocked By: | Blocking: | ||
Related Tickets: | Differential Rev(s): | Phab:D906 | |
Wiki Page: |
Description
If an identifier is out-of-scope but inside a static form (static f
) then GHC says expression not closed, when really it should just say identifier out of scope.
t.hs:6:5: error: Only identifiers of top-level bindings can appear in the body of the static form: static f but the following identifiers were found instead: f
We just want:
t.hs:6:12: error: Not in scope: ‘f’
Change History (4)
comment:1 Changed 5 years ago by
Differential Rev(s): | → Phab: D906 |
---|---|
Status: | new → patch |
comment:2 Changed 5 years ago by
Differential Rev(s): | Phab: D906 → Phab:D906 |
---|
comment:3 Changed 5 years ago by
Note: See
TracTickets for help on using
tickets.
In 71d1f01db94dda5b8c2c367fba8cc7b115b06e95/ghc: