summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Scott <ryan.gl.scott@gmail.com>2017-05-12 09:06:24 -0400
committerRyan Scott <ryan.gl.scott@gmail.com>2017-05-12 09:06:24 -0400
commita13adcf8cfc650979a80101c0879c11a507734f9 (patch)
treecc1a69f5e54ceaada3633491b66a8bc6a6656611
parentba5114e310e9140f2b4987245ba1f3709c7b06ec (diff)
downloadhaskell-a13adcf8cfc650979a80101c0879c11a507734f9.tar.gz
Add regression test for #11964
This issue was only ever present in the GHC 8.0.1 release candidates, but let's add a regression test for it just to be safe.
-rw-r--r--testsuite/tests/dependent/should_run/T11964.hs10
-rw-r--r--testsuite/tests/dependent/should_run/T11964a.hs5
-rwxr-xr-xtestsuite/tests/dependent/should_run/all.T2
3 files changed, 16 insertions, 1 deletions
diff --git a/testsuite/tests/dependent/should_run/T11964.hs b/testsuite/tests/dependent/should_run/T11964.hs
new file mode 100644
index 0000000000..96a83dc2ca
--- /dev/null
+++ b/testsuite/tests/dependent/should_run/T11964.hs
@@ -0,0 +1,10 @@
+module T11964 where
+
+import Data.Kind
+import T11964a
+
+t1 :: T Type Int
+t1 = T ()
+
+t2 :: T Star Int
+t2 = T ()
diff --git a/testsuite/tests/dependent/should_run/T11964a.hs b/testsuite/tests/dependent/should_run/T11964a.hs
new file mode 100644
index 0000000000..f0576542b6
--- /dev/null
+++ b/testsuite/tests/dependent/should_run/T11964a.hs
@@ -0,0 +1,5 @@
+{-# LANGUAGE TypeInType #-}
+module T11964a where
+import Data.Kind
+type Star = Type
+newtype T k (t :: k) = T ()
diff --git a/testsuite/tests/dependent/should_run/all.T b/testsuite/tests/dependent/should_run/all.T
index c3b18c18c5..29877a7d90 100755
--- a/testsuite/tests/dependent/should_run/all.T
+++ b/testsuite/tests/dependent/should_run/all.T
@@ -1,4 +1,4 @@
# test('T11311', normal, compile_and_run, [''])
-
+test('T11964', normal, multimod_compile, ['T11964', '-v0'])