Reset cc_pend_sc flag in dropDerivedCt
authorSimon Peyton Jones <simonpj@microsoft.com>
Tue, 9 May 2017 08:29:44 +0000 (09:29 +0100)
committerSimon Peyton Jones <simonpj@microsoft.com>
Tue, 9 May 2017 09:44:01 +0000 (10:44 +0100)
commit43a31683acbe2f8120fbb73fe5a6fd1f5de9db80
tree0ac2b20c387a32dabe17bb20da25cb78a9e03d1d
parentcb5ca5f39c2ad26608516ee4248b9ddea31a1d5a
Reset cc_pend_sc flag in dropDerivedCt

I'd forgotten to reset this flag to True when dropping Derived
constraints, which led to Trac #13662.  Easily fixed.
compiler/typecheck/TcCanonical.hs
compiler/typecheck/TcRnTypes.hs
testsuite/tests/indexed-types/should_compile/T13662.hs [new file with mode: 0644]
testsuite/tests/indexed-types/should_compile/all.T