[Git][ghc/ghc][master] Add regression test #18501

Marge Bot gitlab at gitlab.haskell.org
Tue Sep 29 04:34:03 UTC 2020



 Marge Bot pushed to branch master at Glasgow Haskell Compiler / GHC


Commits:
4365d77a by Ryan Scott at 2020-09-29T00:33:57-04:00
Add regression test #18501

ghc/ghc!3220 ended up fixing #18501. This patch adds a regression
test for #18501 to ensure that it stays fixed.

- - - - -


3 changed files:

- + testsuite/tests/ghci/scripts/T18501.script
- + testsuite/tests/ghci/scripts/T18501.stdout
- testsuite/tests/ghci/scripts/all.T


Changes:

=====================================
testsuite/tests/ghci/scripts/T18501.script
=====================================
@@ -0,0 +1,3 @@
+:set -XAllowAmbiguousTypes
+class Foo a where foo :: String
+:t foo


=====================================
testsuite/tests/ghci/scripts/T18501.stdout
=====================================
@@ -0,0 +1 @@
+foo :: Foo a => String


=====================================
testsuite/tests/ghci/scripts/all.T
=====================================
@@ -318,4 +318,5 @@ test('T17403', normal, ghci_script, ['T17403.script'])
 test('T17431', normal, ghci_script, ['T17431.script'])
 test('T17549', normal, ghci_script, ['T17549.script'])
 test('T17669', [extra_run_opts('-fexternal-interpreter -fobject-code'), expect_broken(17669)], ghci_script, ['T17669.script'])
+test('T18501', normal, ghci_script, ['T18501.script'])
 test('T18644', normal, ghci_script, ['T18644.script'])



View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/4365d77a0b306ada61654c3648b844cfa0f4fdcf

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/4365d77a0b306ada61654c3648b844cfa0f4fdcf
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/20200929/b1e15257/attachment.html>


More information about the ghc-commits mailing list