summaryrefslogtreecommitdiff
path: root/testsuite/tests/indexed-types/should_fail/all.T
diff options
context:
space:
mode:
authorRyan Scott <ryan.gl.scott@gmail.com>2020-09-08 07:20:02 -0400
committerMarge Bot <ben+marge-bot@smart-cactus.org>2020-09-09 00:46:41 -0400
commit822f10575d207a2a47b21ac853dcf28c655041c4 (patch)
tree73fed8f93e7b3b46d880e6088fb415c1332bc80d /testsuite/tests/indexed-types/should_fail/all.T
parente5a2899ce8e06b8645946fbb67041807cd3a4fe5 (diff)
downloadhaskell-822f10575d207a2a47b21ac853dcf28c655041c4.tar.gz
Postpone associated tyfam default checks until after typechecking
Previously, associated type family defaults were validity-checked during typechecking. Unfortunately, the error messages that these checks produce run the risk of printing knot-tied type constructors, which will cause GHC to diverge. In order to preserve the current error message's descriptiveness, this patch postpones these validity checks until after typechecking, which are now located in the new function `GHC.Tc.Validity.checkValidAssocTyFamDeflt`. Fixes #18648.
Diffstat (limited to 'testsuite/tests/indexed-types/should_fail/all.T')
-rw-r--r--testsuite/tests/indexed-types/should_fail/all.T1
1 files changed, 1 insertions, 0 deletions
diff --git a/testsuite/tests/indexed-types/should_fail/all.T b/testsuite/tests/indexed-types/should_fail/all.T
index a419610f9e..428ab8d4f1 100644
--- a/testsuite/tests/indexed-types/should_fail/all.T
+++ b/testsuite/tests/indexed-types/should_fail/all.T
@@ -162,3 +162,4 @@ test('T16356_Fail3', normal, compile_fail, [''])
test('T17008a', normal, compile_fail, ['-fprint-explicit-kinds'])
test('T13571', normal, compile_fail, [''])
test('T13571a', normal, compile_fail, [''])
+test('T18648', normal, compile_fail, [''])