summaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite')
-rw-r--r--testsuite/tests/haddock/should_compile_flag_haddock/T17544_kw.hs2
-rw-r--r--testsuite/tests/haddock/should_compile_flag_haddock/T17544_kw.stderr19
2 files changed, 5 insertions, 16 deletions
diff --git a/testsuite/tests/haddock/should_compile_flag_haddock/T17544_kw.hs b/testsuite/tests/haddock/should_compile_flag_haddock/T17544_kw.hs
index 4acf2af68d..8f90c6bccd 100644
--- a/testsuite/tests/haddock/should_compile_flag_haddock/T17544_kw.hs
+++ b/testsuite/tests/haddock/should_compile_flag_haddock/T17544_kw.hs
@@ -1,7 +1,7 @@
{-# LANGUAGE GADTs #-}
{-# OPTIONS -haddock -ddump-parsed-ast #-}
--- Haddock comments in this test case should all be rejected, but they are not.
+-- Haddock comments in this test case should all be rejected, but some of them are not.
--
-- This is a known issue. Users should avoid writing comments in such
-- positions, as a future fix will disallow them.
diff --git a/testsuite/tests/haddock/should_compile_flag_haddock/T17544_kw.stderr b/testsuite/tests/haddock/should_compile_flag_haddock/T17544_kw.stderr
index c4eee108ce..047cd3bb01 100644
--- a/testsuite/tests/haddock/should_compile_flag_haddock/T17544_kw.stderr
+++ b/testsuite/tests/haddock/should_compile_flag_haddock/T17544_kw.stderr
@@ -356,20 +356,9 @@
[]}
[]
[]
- [(L
- (SrcSpanAnn (EpAnnNotUsed) { T17544_kw.hs:22:5-34 })
- (DocCommentNext
- (L
- { T17544_kw.hs:22:5-34 }
- (WithHsDocIdentifiers
- (MultiLineDocString
- (HsDocStringNext)
- (:|
- (L
- { T17544_kw.hs:22:9-34 }
- (HsDocStringChunk
- " Bad comment for clsmethod"))
- []))
- []))))])))]))
+ [])))]))
+
+T17544_kw.hs:22:5: warning: [GHC-94458] [-Winvalid-haddock]
+ A Haddock comment cannot appear in this position and will be ignored.