[commit: ghc] master: Add a test for Trac #15586 (a3a1a17)
git at git.haskell.org
git at git.haskell.org
Tue Sep 4 13:43:33 UTC 2018
Repository : ssh://git@git.haskell.org/ghc
On branch : master
Link : http://ghc.haskell.org/trac/ghc/changeset/a3a1a17ba7ddbc40b093c732e7e3a916b9531eac/ghc
>---------------------------------------------------------------
commit a3a1a17ba7ddbc40b093c732e7e3a916b9531eac
Author: Krzysztof Gogolewski <krz.gogolewski at gmail.com>
Date: Tue Sep 4 15:42:52 2018 +0200
Add a test for Trac #15586
Summary: The bug is already fixed in master.
Test Plan: make test TEST=T15586
Reviewers: bgamari, simonpj
Reviewed By: simonpj
Subscribers: rwbarton, carter
GHC Trac Issues: #15586
Differential Revision: https://phabricator.haskell.org/D5118
>---------------------------------------------------------------
a3a1a17ba7ddbc40b093c732e7e3a916b9531eac
testsuite/tests/typecheck/should_compile/T15586.hs | 12 ++++++++++++
testsuite/tests/typecheck/should_compile/all.T | 1 +
2 files changed, 13 insertions(+)
diff --git a/testsuite/tests/typecheck/should_compile/T15586.hs b/testsuite/tests/typecheck/should_compile/T15586.hs
new file mode 100644
index 0000000..e8fd4f3
--- /dev/null
+++ b/testsuite/tests/typecheck/should_compile/T15586.hs
@@ -0,0 +1,12 @@
+{-# LANGUAGE GADTs #-}
+
+module STree where
+
+data STree a where
+ STreeIM :: {
+ l :: v a ,
+ stree :: a
+ } -> STree a
+
+insert :: STree a -> STree a
+insert s = s { stree = undefined }
diff --git a/testsuite/tests/typecheck/should_compile/all.T b/testsuite/tests/typecheck/should_compile/all.T
index 64df3a8..c3a90ee 100644
--- a/testsuite/tests/typecheck/should_compile/all.T
+++ b/testsuite/tests/typecheck/should_compile/all.T
@@ -649,3 +649,4 @@ test('T15412', normal, compile, [''])
test('T15141', normal, compile, [''])
test('T15473', normal, compile_fail, [''])
test('T15499', normal, compile, [''])
+test('T15586', normal, compile, [''])
More information about the ghc-commits
mailing list