diff options
author | Alan Zimmerman <alan.zimm@gmail.com> | 2021-12-21 13:00:28 +0000 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2021-12-22 00:13:38 -0500 |
commit | 09b6cb45505c2c32ddaffcdb930fb3f7873b2cfc (patch) | |
tree | e5ece936a8853bef1c8b9551b4eb8f2a4af0bac4 /testsuite/tests/printer/all.T | |
parent | d7cc8f1915c9617b6d4256fd1e483c24b4b1e851 (diff) | |
download | haskell-09b6cb45505c2c32ddaffcdb930fb3f7873b2cfc.tar.gz |
Fix panic trying to -ddump-parsed-ast for implicit fixity
A declaration such as
infixr ++++
is supplied with an implicit fixity of 9 in the parser, but uses
an invalid SrcSpan to capture this. Use of this span triggers a panic.
Fix the problem by not recording an exact print annotation for the
non-existent fixity source.
Closes #20846
Diffstat (limited to 'testsuite/tests/printer/all.T')
-rw-r--r-- | testsuite/tests/printer/all.T | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/testsuite/tests/printer/all.T b/testsuite/tests/printer/all.T index 18ba7ca5d7..3d7c28e453 100644 --- a/testsuite/tests/printer/all.T +++ b/testsuite/tests/printer/all.T @@ -175,3 +175,4 @@ test('PprCommentPlacement2', [ignore_stderr, req_ppr_deps], makefile_test, ['Ppr test('Test20243', [ignore_stderr, req_ppr_deps], makefile_test, ['Test20243']) test('Test20258', [ignore_stderr, req_ppr_deps], makefile_test, ['Test20258']) test('Test20297', [ignore_stderr, req_ppr_deps], makefile_test, ['Test20297']) +test('Test20846', [ignore_stderr, req_ppr_deps], makefile_test, ['Test20846']) |