summaryrefslogtreecommitdiff
path: root/testsuite/tests/typecheck/should_compile/GivenTypeSynonym.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/typecheck/should_compile/GivenTypeSynonym.hs')
-rw-r--r--testsuite/tests/typecheck/should_compile/GivenTypeSynonym.hs14
1 files changed, 14 insertions, 0 deletions
diff --git a/testsuite/tests/typecheck/should_compile/GivenTypeSynonym.hs b/testsuite/tests/typecheck/should_compile/GivenTypeSynonym.hs
new file mode 100644
index 0000000000..918eb788b3
--- /dev/null
+++ b/testsuite/tests/typecheck/should_compile/GivenTypeSynonym.hs
@@ -0,0 +1,14 @@
+{-# LANGUAGE TypeFamilies #-}
+module Main where
+
+data A a
+
+type T a = A a
+
+
+f :: (A a ~ T Int) => a -> Int
+f x = x
+
+
+main :: IO ()
+main = return () \ No newline at end of file