[Git][ghc/ghc][master] Add a test for #16597
Marge Bot
gitlab at gitlab.haskell.org
Fri May 24 02:39:29 UTC 2019
Marge Bot pushed to branch master at Glasgow Haskell Compiler / GHC
Commits:
0b449d34 by Ömer Sinan Ağacan at 2019-05-24T02:35:54Z
Add a test for #16597
- - - - -
3 changed files:
- + testsuite/tests/overloadedrecflds/should_compile/T16597.hs
- + testsuite/tests/overloadedrecflds/should_compile/T16597a.hs
- testsuite/tests/overloadedrecflds/should_compile/all.T
Changes:
=====================================
testsuite/tests/overloadedrecflds/should_compile/T16597.hs
=====================================
@@ -0,0 +1,5 @@
+module T16597 where
+
+import T16597a (distinct)
+
+showDistinct = show . distinct
=====================================
testsuite/tests/overloadedrecflds/should_compile/T16597a.hs
=====================================
@@ -0,0 +1,5 @@
+{-# LANGUAGE DuplicateRecordFields #-}
+
+module T16597a where
+
+data Record = Record { distinct :: String }
=====================================
testsuite/tests/overloadedrecflds/should_compile/all.T
=====================================
@@ -1,2 +1,3 @@
test('T11173', [], multimod_compile, ['T11173', '-v0'])
test('T12609', normal, compile, [''])
+test('T16597', [], multimod_compile, ['T16597', '-v0'])
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/commit/0b449d3415543771779a74f8d867eb1a4748ddb2
--
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/commit/0b449d3415543771779a74f8d867eb1a4748ddb2
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/20190523/b709ed3d/attachment.html>
More information about the ghc-commits
mailing list