Fix #14618 by applying a subst in deeplyInstantiate
authorRichard Eisenberg <rae@cs.brynmawr.edu>
Tue, 26 Dec 2017 19:23:40 +0000 (14:23 -0500)
committerRichard Eisenberg <rae@cs.brynmawr.edu>
Tue, 26 Dec 2017 19:28:51 +0000 (14:28 -0500)
commit722a6584bb338bc77ad978d14113b3b8e6a45cab
tree43890bade684c914ebb0aeb53b9025b75aec47a3
parente19b6464cc8ea498775074a680f91d3e5b5636d3
Fix #14618 by applying a subst in deeplyInstantiate

Previously, we were inexplicably not applying an instantiating
substitution to arguments in non-prenex types. It's amazing this
has been around for so long! I guess there aren't a lot of non-prenex
types around.

test case: typecheck/should_fail/T14618
compiler/typecheck/Inst.hs
testsuite/tests/typecheck/should_fail/T14618.hs [new file with mode: 0644]
testsuite/tests/typecheck/should_fail/T14618.stderr [new file with mode: 0644]
testsuite/tests/typecheck/should_fail/all.T