[Git][ghc/ghc][wip/T16758] Unmark T16758 as expect_broken

Ryan Scott gitlab at gitlab.haskell.org
Sat May 2 16:39:08 UTC 2020



Ryan Scott pushed to branch wip/T16758 at Glasgow Haskell Compiler / GHC


Commits:
648e5207 by Ryan Scott at 2020-05-02T12:37:29-04:00
Unmark T16758 as expect_broken

Commit e3c374cc5bd7eb49649b9f507f9f7740697e3f70 fixes #16758.
Accordingly, this patch removes the `expect_broken` label from the
`T16758` test case, moves it from `should_compile` to `should_fail`
(as it should produce an error message), and checks in the expected
stderr.

- - - - -


4 changed files:

- testsuite/tests/saks/should_compile/all.T
- testsuite/tests/saks/should_compile/T16758.hs → testsuite/tests/saks/should_fail/T16758.hs
- + testsuite/tests/saks/should_fail/T16758.stderr
- testsuite/tests/saks/should_fail/all.T


Changes:

=====================================
testsuite/tests/saks/should_compile/all.T
=====================================
@@ -34,7 +34,6 @@ test('T16723', normal, compile, [''])
 test('T16724', extra_files(['T16724.hs']), ghci_script, ['T16724.script'])
 test('T16726', normal, compile, [''])
 test('T16731', normal, compile, [''])
-test('T16758', expect_broken(16758), compile, [''])
 test('T16721', normal, ghci_script, ['T16721.script'])
 test('T16756a', normal, compile, [''])
 


=====================================
testsuite/tests/saks/should_compile/T16758.hs → testsuite/tests/saks/should_fail/T16758.hs
=====================================


=====================================
testsuite/tests/saks/should_fail/T16758.stderr
=====================================
@@ -0,0 +1,8 @@
+
+T16758.hs:14:8: error:
+    • Couldn't match expected kind ‘Int’ with actual kind ‘a’
+      ‘a’ is a rigid type variable bound by
+        the class declaration for ‘C’
+        at T16758.hs:12:19
+    • In the type signature: f :: C a => a -> Int
+      In the class declaration for ‘C’


=====================================
testsuite/tests/saks/should_fail/all.T
=====================================
@@ -30,3 +30,4 @@ test('T16727b', normal, compile_fail, [''])
 test('T16725', normal, compile_fail, [''])
 test('T16826', normal, compile_fail, [''])
 test('T16756b', normal, compile_fail, [''])
+test('T16758', normal, compile_fail, [''])



View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/648e5207ba549b25d2cf846e301e0b9b3b3f8cfa

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/648e5207ba549b25d2cf846e301e0b9b3b3f8cfa
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/20200502/cd5a8231/attachment-0001.html>


More information about the ghc-commits mailing list