diff options
author | Alfredo Di Napoli <alfredo@well-typed.com> | 2021-01-19 09:42:13 +0100 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2021-01-22 15:00:47 -0500 |
commit | c36a4f6389e5607b1608682c2fcdb0866cac31d0 (patch) | |
tree | eb76e2665ea6a5b87caded5745edfab99e280cae /testsuite/tests/module | |
parent | a64f21e9f6bd949847d3c8fa1e427e5c763ccd7f (diff) | |
download | haskell-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/module')
-rw-r--r-- | testsuite/tests/module/T11970.stderr | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/testsuite/tests/module/T11970.stderr b/testsuite/tests/module/T11970.stderr index c6799a1898..246dd7db4c 100644 --- a/testsuite/tests/module/T11970.stderr +++ b/testsuite/tests/module/T11970.stderr @@ -1,12 +1,13 @@ T11970.hs:6:40: error: - • The type constructor ‘C’ is not the parent of the data constructor ‘B’. - Data constructors can only be exported with their parent type constructor. + • The type constructor ‘C’ is not the parent of the record selector ‘recSel’. + Record selectors can only be exported with their parent type constructor. Parent: B • In the export: C(C, P, x, Q, B, recSel) T11970.hs:6:40: error: - • The type constructor ‘C’ is not the parent of the record selector ‘recSel’. - Record selectors can only be exported with their parent type constructor. + • The type constructor ‘C’ is not the parent of the data constructor ‘B’. + Data constructors can only be exported with their parent type constructor. Parent: B • In the export: C(C, P, x, Q, B, recSel) + |