Add regression test for #11964
authorRyan Scott <ryan.gl.scott@gmail.com>
Fri, 12 May 2017 13:06:24 +0000 (09:06 -0400)
committerRyan Scott <ryan.gl.scott@gmail.com>
Fri, 12 May 2017 13:06:24 +0000 (09:06 -0400)
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.

testsuite/tests/dependent/should_run/T11964.hs [new file with mode: 0644]
testsuite/tests/dependent/should_run/T11964a.hs [new file with mode: 0644]
testsuite/tests/dependent/should_run/all.T

diff --git a/testsuite/tests/dependent/should_run/T11964.hs b/testsuite/tests/dependent/should_run/T11964.hs
new file mode 100644 (file)
index 0000000..96a83dc
--- /dev/null
@@ -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 (file)
index 0000000..f057654
--- /dev/null
@@ -0,0 +1,5 @@
+{-# LANGUAGE TypeInType #-}
+module T11964a where
+import Data.Kind
+type Star = Type
+newtype T k (t :: k) = T ()
index c3b18c1..29877a7 100755 (executable)
@@ -1,4 +1,4 @@
 
 
 # test('T11311', normal, compile_and_run, [''])
-
+test('T11964', normal, multimod_compile, ['T11964', '-v0'])