Simon Jakobi pushed to branch wip/sjakobi/multi-caret at Glasgow Haskell Compiler / GHC Commits: 1f7ffaaa by Simon Jakobi at 2026-05-27T22:54:22+02:00 Add TcRnDuplicateDecls - - - - - 3 changed files: - compiler/GHC/Tc/Errors/Ppr.hs - testsuite/tests/rename/should_fail/T7164.stderr - testsuite/tests/rename/should_fail/all.T Changes: ===================================== compiler/GHC/Tc/Errors/Ppr.hs ===================================== @@ -3464,6 +3464,8 @@ instance Diagnostic TcRnMessage where -> diagnosticRelatedLocations msg' TcRnBindingNameConflict _ locs -> NE.tail locs + TcRnDuplicateDecls _ names + -> map nameSrcSpan (NE.init names) _ -> [] ===================================== testsuite/tests/rename/should_fail/T7164.stderr ===================================== @@ -1,5 +1,11 @@ - -T7164.hs:8:1: [GHC-29916] +T7164.hs:8:1: error: [GHC-29916] Multiple declarations of ‘derp’ Declared at: T7164.hs:5:5 T7164.hs:8:1 + | +5 | derp :: m a + | ^^^^^^^^^^^ + | +8 | derp = 123 + | ^^^^ + ===================================== testsuite/tests/rename/should_fail/all.T ===================================== @@ -91,7 +91,7 @@ test('T6148a', normal, compile_fail, ['']) test('T6148b', normal, compile_fail, ['']) test('T6148c', normal, compile_fail, ['']) test('T6148d', normal, compile_fail, ['']) -test('T7164', normal, compile_fail, ['']) +test('T7164', normal, compile_fail, ['-fdiagnostics-show-caret']) test('T7338', normal, compile_fail, ['']) test('T7338a', normal, compile_fail, ['']) test('T7454', normal, compile, ['']) View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/1f7ffaaadaa800daf07c937c690140b7... -- View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/1f7ffaaadaa800daf07c937c690140b7... You're receiving this email because of your account on gitlab.haskell.org.
participants (1)
-
Simon Jakobi (@sjakobi2)