[project @ 2001-10-22 11:37:45 by simonpj]
authorsimonpj <unknown>
Mon, 22 Oct 2001 11:37:45 +0000 (11:37 +0000)
committersimonpj <unknown>
Mon, 22 Oct 2001 11:37:45 +0000 (11:37 +0000)
commit2c128fe85dffabfbb00b3acd20d74ccd9eed79ee
tree886d611fe9aea4a10e3f9d404271ce3f0920e38a
parent0cce925f92d4bdd742073445e26da5378da4bf49
[project @ 2001-10-22 11:37:45 by simonpj]
-------------------------------
Correct a nasty existential bug
-------------------------------

MERGE WITH STABLE BRANCH

Thanks to Volker Stolz for finding this existential bug.
Again, it's amazing that it hasn't shown up before.
GHC 5.02 allows this utterly bogus program to get past
the type checker

  data DS = forall a. C (a -> Int)

  call (C f) arg = f arg

The existential-tyvar-escape check was wrong. Easily fixed, though.

tcfail099 now tests for this
ghc/compiler/typecheck/TcMatches.lhs