Fix #11754 by adding an additional check.
authorRichard Eisenberg <eir@cis.upenn.edu>
Fri, 25 Mar 2016 19:11:24 +0000 (15:11 -0400)
committerRichard Eisenberg <eir@cis.upenn.edu>
Sat, 26 Mar 2016 20:28:15 +0000 (16:28 -0400)
commit4da8e73d5235b0000ae27aa8ff8438a3687b6e9c
treee981fe43031f07be4c477e5b51828cee5db69624
parent882179de09f9bd466b0e7ca83522aee0d3d7144a
Fix #11754 by adding an additional check.

This was just plain wrong previously.

Test case: typecheck/should_compile/T11754
compiler/types/OptCoercion.hs
testsuite/tests/typecheck/should_compile/T11754.hs [new file with mode: 0644]
testsuite/tests/typecheck/should_compile/all.T