Fix #11230.
authorRichard Eisenberg <eir@cis.upenn.edu>
Tue, 15 Dec 2015 22:36:32 +0000 (17:36 -0500)
committerRichard Eisenberg <eir@cis.upenn.edu>
Thu, 17 Dec 2015 17:58:29 +0000 (12:58 -0500)
commit1722fa106e10e63160bb2322e2ccb830fd5b9ab3
tree55b03d5e3162c6fd1fae5081cf61fcab0d7c7fa0
parentae86eb9f72fa7220fe47ac54d6d21395691c1308
Fix #11230.

Previously, we were optimizing away all case expressions over
coercions with dead binders. But sometimes we want to force
the coercion expression. Like when it contains an error.

Test case: typecheck/should_run/T11230
compiler/coreSyn/CoreSubst.hs
testsuite/tests/indexed-types/should_compile/T7837.stderr
testsuite/tests/typecheck/should_run/T11230.hs [new file with mode: 0644]
testsuite/tests/typecheck/should_run/T11230.stdout [new file with mode: 0644]
testsuite/tests/typecheck/should_run/all.T