Test #7643 in typecheck/should_compile/T7643.
authorRichard Eisenberg <eir@cis.upenn.edu>
Mon, 24 Nov 2014 20:13:53 +0000 (15:13 -0500)
committerRichard Eisenberg <eir@cis.upenn.edu>
Mon, 24 Nov 2014 20:26:29 +0000 (15:26 -0500)
testsuite/tests/typecheck/should_compile/T7643.hs [new file with mode: 0644]
testsuite/tests/typecheck/should_compile/all.T

diff --git a/testsuite/tests/typecheck/should_compile/T7643.hs b/testsuite/tests/typecheck/should_compile/T7643.hs
new file mode 100644 (file)
index 0000000..77071d5
--- /dev/null
@@ -0,0 +1,11 @@
+{-# LANGUAGE MagicHash, TypeFamilies #-}
+
+module T7643 where
+
+import GHC.Exts
+
+type family T
+type instance T = RealWorld
+
+foo :: () -> State# T
+foo _ = unsafeCoerce# realWorld#
index b16ff43..291d118 100644 (file)
@@ -431,3 +431,4 @@ test('T9151', normal, compile, [''])
 test('T9497a', normal, compile, ['-fdefer-typed-holes'])
 test('T9497b', normal, compile, ['-fdefer-typed-holes -fno-warn-typed-holes'])
 test('T9497c', normal, compile, ['-fdefer-type-errors -fno-warn-typed-holes'])
+test('T7643', normal, compile, [''])