[Git][ghc/ghc][wip/T25647] fix up T23512a

Patrick (@soulomoon) gitlab at gitlab.haskell.org
Thu Feb 6 13:32:36 UTC 2025



Patrick pushed to branch wip/T25647 at Glasgow Haskell Compiler / GHC


Commits:
8c08de98 by Patrick at 2025-02-06T21:32:28+08:00
fix up T23512a

- - - - -


2 changed files:

- compiler/GHC/Rename/Module.hs
- testsuite/tests/rename/should_fail/T23512a.stderr


Changes:

=====================================
compiler/GHC/Rename/Module.hs
=====================================
@@ -789,7 +789,7 @@ rnFamEqn doc atfi
     --   type instance F a b c = Either a b
     --                   ^^^^^
     lhs_loc = case map lhsTypeArgSrcSpan pats of
-      []         -> panic "rnFamEqn.lhs_loc"
+      []         -> getLocA tycon
       [loc]      -> loc
       (loc:locs) -> loc `combineSrcSpans` last locs
 


=====================================
testsuite/tests/rename/should_fail/T23512a.stderr
=====================================
@@ -1,6 +1,3 @@
-
 T23512a.hs:6:31: error: [GHC-76037] Not in scope: type variable ‘j’
 
 T23512a.hs:6:36: error: [GHC-76037] Not in scope: type variable ‘j’
-
-T23512a.hs:9:20: error: [GHC-76037] Not in scope: type variable ‘k’



View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/8c08de98d6dc757148a3315c37d9d6cfd06356bd

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/8c08de98d6dc757148a3315c37d9d6cfd06356bd
You're receiving this email because of your account on gitlab.haskell.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20250206/512c64e2/attachment.html>


More information about the ghc-commits mailing list