API Annotations: parens anns discarded for `(*)` operator
The patch from https://phabricator.haskell.org/D4865 introduces go _ (HsParTy _ (dL->L l (HsStarTy _ isUni))) acc ann fix = do { warnStarBndr l ; let name = mkOccName tcClsName (if isUni then "★" else "*") ; return (cL l (Unqual name), acc, fix, ann) } which discards the parens annotations belonging to the HsParTy. Updates haddock submodule Closes #16265 (cherry picked from commit 5e9888bd)
Showing
- compiler/parser/RdrHsSyn.hs 2 additions, 2 deletionscompiler/parser/RdrHsSyn.hs
- testsuite/tests/ghc-api/annotations/Makefile 4 additions, 0 deletionstestsuite/tests/ghc-api/annotations/Makefile
- testsuite/tests/ghc-api/annotations/StarBinderAnns.hs 6 additions, 0 deletionstestsuite/tests/ghc-api/annotations/StarBinderAnns.hs
- testsuite/tests/ghc-api/annotations/StarBinderAnns.stdout 36 additions, 0 deletionstestsuite/tests/ghc-api/annotations/StarBinderAnns.stdout
- testsuite/tests/ghc-api/annotations/all.T 2 additions, 0 deletionstestsuite/tests/ghc-api/annotations/all.T
Please register or sign in to comment