summaryrefslogtreecommitdiff
path: root/testsuite/tests/ghci/scripts/all.T
diff options
context:
space:
mode:
authorSimon Peyton Jones <simonpj@microsoft.com>2019-03-07 09:09:13 +0000
committerMarge Bot <ben+marge-bot@smart-cactus.org>2019-03-08 06:08:41 -0500
commit5be7ad7861c8d39f60b7101fd8d8e816ff50353a (patch)
tree3eeaf6e6add705eb2ae10b343aadd1307d8f2106 /testsuite/tests/ghci/scripts/all.T
parent826282540492d64c59cd3ba9df5fd0b2e92f76ef (diff)
downloadhaskell-5be7ad7861c8d39f60b7101fd8d8e816ff50353a.tar.gz
Use captureTopConstraints in TcRnDriver calls
Trac #16376 showed the danger of failing to report an error that exists only in the unsolved constraints, if an exception is raised (via failM). Well, the commit 5c1f268e (Fail fast in solveLocalEqualities) did just that -- i.e. it found errors in the constraints, and called failM to avoid a misleading cascade. So we need to be sure to call captureTopConstraints to report those insolubles. This was wrong in TcRnDriver.tcRnExpr and in TcRnDriver.tcRnType. As a result the error messages from test T13466 improved slightly, a happy outcome.
Diffstat (limited to 'testsuite/tests/ghci/scripts/all.T')
-rwxr-xr-xtestsuite/tests/ghci/scripts/all.T1
1 files changed, 1 insertions, 0 deletions
diff --git a/testsuite/tests/ghci/scripts/all.T b/testsuite/tests/ghci/scripts/all.T
index 946c6ef954..dd76a07f5c 100755
--- a/testsuite/tests/ghci/scripts/all.T
+++ b/testsuite/tests/ghci/scripts/all.T
@@ -292,3 +292,4 @@ test('T16030', normal, ghci_script, ['T16030.script'])
test('T11606', normal, ghci_script, ['T11606.script'])
test('T16089', normal, ghci_script, ['T16089.script'])
test('T14828', expect_broken(14828), ghci_script, ['T14828.script'])
+test('T16376', normal, ghci_script, ['T16376.script'])