summaryrefslogtreecommitdiff
path: root/testsuite/tests/patsyn
diff options
context:
space:
mode:
authorAlfredo Di Napoli <alfredo@well-typed.com>2021-01-19 09:42:13 +0100
committerMarge Bot <ben+marge-bot@smart-cactus.org>2021-01-22 15:00:47 -0500
commitc36a4f6389e5607b1608682c2fcdb0866cac31d0 (patch)
treeeb76e2665ea6a5b87caded5745edfab99e280cae /testsuite/tests/patsyn
parenta64f21e9f6bd949847d3c8fa1e427e5c763ccd7f (diff)
downloadhaskell-c36a4f6389e5607b1608682c2fcdb0866cac31d0.tar.gz
Fix tests relying on same-line diagnostic ordering
This commit fixes 19 tests which were failing due to the use of `consBag` / `snocBag`, which have been now replaced by `addMessage`. This means that now GHC would output things in different order but only for /diagnostics on the same line/, so this is just reflecting that. The "normal" order of messages is still guaranteed.
Diffstat (limited to 'testsuite/tests/patsyn')
-rw-r--r--testsuite/tests/patsyn/should_fail/export-ps-rec-sel.stderr5
1 files changed, 3 insertions, 2 deletions
diff --git a/testsuite/tests/patsyn/should_fail/export-ps-rec-sel.stderr b/testsuite/tests/patsyn/should_fail/export-ps-rec-sel.stderr
index 7ba9a42000..4b3bdd0ea1 100644
--- a/testsuite/tests/patsyn/should_fail/export-ps-rec-sel.stderr
+++ b/testsuite/tests/patsyn/should_fail/export-ps-rec-sel.stderr
@@ -2,11 +2,12 @@
export-ps-rec-sel.hs:2:13: error:
Pattern synonyms can only be bundled with matching type constructors
Couldn't match expected type of ‘R’ with actual type of ‘Q’
- In the pattern synonym: P
+ In the pattern synonym record selector: x
In the export: R(P, x)
export-ps-rec-sel.hs:2:13: error:
Pattern synonyms can only be bundled with matching type constructors
Couldn't match expected type of ‘R’ with actual type of ‘Q’
- In the pattern synonym record selector: x
+ In the pattern synonym: P
In the export: R(P, x)
+