Test Trac #8644
authorSimon Peyton Jones <simonpj@microsoft.com>
Fri, 3 Jan 2014 16:06:04 +0000 (16:06 +0000)
committerSimon Peyton Jones <simonpj@microsoft.com>
Fri, 3 Jan 2014 16:06:04 +0000 (16:06 +0000)
testsuite/tests/typecheck/should_compile/T8644.hs [new file with mode: 0644]
testsuite/tests/typecheck/should_compile/all.T

diff --git a/testsuite/tests/typecheck/should_compile/T8644.hs b/testsuite/tests/typecheck/should_compile/T8644.hs
new file mode 100644 (file)
index 0000000..aa3ec09
--- /dev/null
@@ -0,0 +1,11 @@
+{-# LANGUAGE ConstraintKinds, RankNTypes, GADTs #-}
+module T8644 where
+
+data Dict c where Dict :: c => Dict c
+
+foo :: Dict c -> (c => r) -> r
+foo Dict x = x
+
+bar :: Dict ()
+bar = Dict
+
index f773034..0fe6968 100644 (file)
@@ -414,3 +414,4 @@ test('T8392', normal, compile, [''])
 test('T8474', normal, compile, [''])
 test('T8563', normal, compile, [''])
 test('T8565', normal, compile, [''])
+test('T8644', normal, compile, [''])