Ticket #2141 (closed merge: fixed)
Internal error on invalid record update
| Reported by: | rl | Owned by: | igloo |
|---|---|---|---|
| Priority: | normal | Milestone: | 6.10 branch |
| Component: | Compiler (Type checker) | Version: | 6.8.2 |
| Keywords: | Cc: | ||
| Operating System: | Unknown/Multiple | Architecture: | Unknown/Multiple |
| Type of failure: | Difficulty: | Unknown | |
| Test Case: | rnfail054 | Blocked By: | |
| Blocking: | Related Tickets: |
Description
A silly function:
foo :: () -> ()
foo x = x { foo = 1 }
6.8.2 says:
GHC internal error: `foo' is not in scope
In the expression: x {foo = 1}
In the definition of `foo': foo x = x {foo = 1}
HEAD's message is a bit more illuminating:
GHC internal error: `foo' is not in scope during type checking, but it passed the renamer
tcg_type_env of environment: []
In the expression: x {foo = 1}
In the definition of `foo': foo x = x {foo = 1}
Change History
Note: See
TracTickets for help on using
tickets.
