summaryrefslogtreecommitdiff
path: root/testsuite/tests/typecheck/should_fail/tcfail107.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/typecheck/should_fail/tcfail107.hs')
-rw-r--r--testsuite/tests/typecheck/should_fail/tcfail107.hs14
1 files changed, 14 insertions, 0 deletions
diff --git a/testsuite/tests/typecheck/should_fail/tcfail107.hs b/testsuite/tests/typecheck/should_fail/tcfail107.hs
new file mode 100644
index 0000000000..e612e65093
--- /dev/null
+++ b/testsuite/tests/typecheck/should_fail/tcfail107.hs
@@ -0,0 +1,14 @@
+-- The type sig for 'test' is illegal in H98 because of the
+-- partial application of the type sig.
+-- But with the LiberalTypeSynonyms extension enabled it
+-- should be OK because when you expand the type synonyms
+-- it's just Int->Int
+-- c.f should_compile/tc155.hs
+module ShouldFail where
+
+type Thing m = m ()
+
+type Const a b = a
+
+test :: Thing (Const Int) -> Thing (Const Int)
+test = test