Revert "Remove unnecessary isTyVar tests in TcType"
authorRyan Scott <ryan.gl.scott@gmail.com>
Sun, 22 Jan 2017 17:57:08 +0000 (12:57 -0500)
committerRyan Scott <ryan.gl.scott@gmail.com>
Sun, 22 Jan 2017 17:57:09 +0000 (12:57 -0500)
commit560bc289fc6a5b308f985d4c84e0cdf1f88c55fd
tree383f16f19d1b745bb8db75c2d9d4f68bee0beb4a
parentf9ccad236fa6042a3abbb655129f47fe9dadceaf
Revert "Remove unnecessary isTyVar tests in TcType"

Summary:
This reverts commit a0899b2f66a4102a7cf21569889381446ce63833. This is because
removing these checks prompts panics in at least two different programs
reported in #12785.

Test Plan: ./validate

Reviewers: simonpj, goldfire, bgamari, austin

Subscribers: thomie

Differential Revision: https://phabricator.haskell.org/D2931

GHC Trac Issues: #12785
compiler/typecheck/TcType.hs
testsuite/tests/typecheck/should_compile/T12785a.hs [new file with mode: 0644]
testsuite/tests/typecheck/should_compile/all.T
testsuite/tests/typecheck/should_fail/T12785b.hs [new file with mode: 0644]
testsuite/tests/typecheck/should_fail/T12785b.stderr [new file with mode: 0644]
testsuite/tests/typecheck/should_fail/all.T