summaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
authorRichard Eisenberg <rae@cs.brynmawr.edu>2018-11-05 22:51:58 -0500
committerRichard Eisenberg <rae@cs.brynmawr.edu>2018-11-05 22:51:58 -0500
commit5693ddd071033516a1804420a903cb7e3677682b (patch)
tree959990933e95fb69ef0934f8f675ea63b8115782 /testsuite
parent72b82343b79365dc74ffafb345dd33499a7fd394 (diff)
downloadhaskell-5693ddd071033516a1804420a903cb7e3677682b.tar.gz
Actually add test for #15859.
Oops. Forgot to `git add`.
Diffstat (limited to 'testsuite')
-rw-r--r--testsuite/tests/dependent/should_fail/T15859.hs13
1 files changed, 13 insertions, 0 deletions
diff --git a/testsuite/tests/dependent/should_fail/T15859.hs b/testsuite/tests/dependent/should_fail/T15859.hs
new file mode 100644
index 0000000000..e8ffdf4ae2
--- /dev/null
+++ b/testsuite/tests/dependent/should_fail/T15859.hs
@@ -0,0 +1,13 @@
+{-# Language PolyKinds #-}
+{-# Language TypeApplications #-}
+{-# Language ImpredicativeTypes #-}
+
+module T15859 where
+
+import Data.Kind
+
+data A k :: k -> Type
+
+type KindOf (a :: k) = k
+
+a = (undefined :: KindOf A) @Int