Fix #11711.
authorRichard Eisenberg <eir@cis.upenn.edu>
Wed, 16 Mar 2016 18:30:00 +0000 (14:30 -0400)
committerRichard Eisenberg <eir@cis.upenn.edu>
Thu, 17 Mar 2016 14:07:22 +0000 (10:07 -0400)
commitb5565f1a79fd24fc45a6f1a58821a317852d4b89
tree1b309bdfa7d842635e731151286c651343f2a783
parent46f9a476e17714e27d893b491cc0dcf68c745249
Fix #11711.

There were two bugs here, both simple: we need to filter out
covars before calling isMetaTyVar in the solver, and TcPat had
a tcSubType the wrong way round.

test case: dependent/should_compile/T11711
compiler/hsSyn/HsPat.hs
compiler/typecheck/TcPat.hs
compiler/typecheck/TcSimplify.hs
testsuite/tests/dependent/should_compile/T11711.hs [new file with mode: 0644]
testsuite/tests/dependent/should_compile/all.T
testsuite/tests/patsyn/should_fail/mono.stderr