Fix Trac #3176: intercept naughty record selectors
authorsimonpj@microsoft.com <unknown>
Thu, 23 Apr 2009 09:42:37 +0000 (09:42 +0000)
committersimonpj@microsoft.com <unknown>
Thu, 23 Apr 2009 09:42:37 +0000 (09:42 +0000)
commit3d638f1b7b665c0e67e4e20827ad98cf307ff381
tree581dba2862e8eab3acda354ac168b31b6f9f0ced
parent72edf508ec424d744376eda2c4191e3c45111bce
Fix Trac #3176: intercept naughty record selectors

When making record selectors into ordinary functions (rather than
magial implicit Ids) I forgot that they could therefore show up in
the *local* TcEnv, not the global one.  This fixes that problem,
and thereby Trac #3176.
compiler/typecheck/TcExpr.lhs