[GHC] #15220: ScopedTypeVariables binds a non-existent variable
GHC
ghc-devs at haskell.org
Sun Aug 19 02:55:37 UTC 2018
#15220: ScopedTypeVariables binds a non-existent variable
-------------------------------------+-------------------------------------
Reporter: goldfire | Owner: (none)
Type: bug | Status: new
Priority: normal | Milestone: 8.8.1
Component: Compiler | Version: 8.5
Resolution: | Keywords:
Operating System: Unknown/Multiple | Architecture:
| Unknown/Multiple
Type of failure: None/Unknown | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s):
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by nomeata):
As a side node, there is need for `undefined` to trigger this:
{{{
f :: (forall a. (a -> (), a)) -> ()
f (p :: (b -> (), b)) = fst p (snd p)
}}}
also has `p` instantiated with `Any`.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/15220#comment:13>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list