Skip to content
Snippets Groups Projects
Commit bf3d4db0 authored by Alan Zimmerman's avatar Alan Zimmerman Committed by Marge Bot
Browse files

EPA: Preserve comments for pattern synonym sig

Closes #24749
parent 08207501
No related branches found
No related tags found
No related merge requests found
......@@ -2653,7 +2653,7 @@ sigdecl :: { LHsDecl GhcPs }
(Fixity fixText fixPrec (unLoc $1)))))
}}
| pattern_synonym_sig { sL1a $1 . SigD noExtField . unLoc $ $1 }
| pattern_synonym_sig { L (getLoc $1) . SigD noExtField . unLoc $ $1 }
| '{-# COMPLETE' qcon_list opt_tyconsig '#-}'
{% let (dcolon, tc) = $3
......
......@@ -846,3 +846,8 @@ Test24748:
DataDeclShort:
$(CHECK_PPR) $(LIBDIR) DataDeclShort.hs
$(CHECK_EXACT) $(LIBDIR) DataDeclShort.hs
.PHONY: Test24749
Test24749:
$(CHECK_PPR) $(LIBDIR) Test24749.hs
$(CHECK_EXACT) $(LIBDIR) Test24749.hs
{-# LANGUAGE PatternSynonyms #-}
module Test24749 where
-- c0
pattern (:|) ::
-- c1
a ->
-- c2
a ->
-- c3
Domino a
......@@ -202,3 +202,4 @@ test('CaseAltComments', [ignore_stderr, req_ppr_deps], makefile_test, ['CaseAltC
test('MatchPatComments', [ignore_stderr, req_ppr_deps], makefile_test, ['MatchPatComments'])
test('Test24748', [ignore_stderr, req_ppr_deps], makefile_test, ['Test24748'])
test('DataDeclShort', [ignore_stderr, req_ppr_deps], makefile_test, ['DataDeclShort'])
test('Test24749', [ignore_stderr, req_ppr_deps], makefile_test, ['Test24749'])
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment