Fix #11355.
authorRichard Eisenberg <eir@cis.upenn.edu>
Sat, 9 Jan 2016 16:18:53 +0000 (11:18 -0500)
committerRichard Eisenberg <eir@cis.upenn.edu>
Fri, 15 Jan 2016 20:43:43 +0000 (15:43 -0500)
commite6ca93005bc3df62619f3f968fe51b380e33938a
tree0c1fb5775f90125aa0950031f96fb2fb9784a25b
parent165ae440b6bbf577eabf0b6d422ed6ea3bf949b4
Fix #11355.

Previously, the check for impredicative type applications was
in the wrong spot.

Test case: typecheck/should_fail/T11355
compiler/typecheck/TcValidity.hs
testsuite/tests/typecheck/should_fail/T11355.hs [new file with mode: 0644]
testsuite/tests/typecheck/should_fail/T11355.stderr [new file with mode: 0644]
testsuite/tests/typecheck/should_fail/all.T