summaryrefslogtreecommitdiff
path: root/testsuite/tests/typecheck/should_fail/T3406.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/typecheck/should_fail/T3406.hs')
-rw-r--r--testsuite/tests/typecheck/should_fail/T3406.hs11
1 files changed, 11 insertions, 0 deletions
diff --git a/testsuite/tests/typecheck/should_fail/T3406.hs b/testsuite/tests/typecheck/should_fail/T3406.hs
new file mode 100644
index 0000000000..3337f3b135
--- /dev/null
+++ b/testsuite/tests/typecheck/should_fail/T3406.hs
@@ -0,0 +1,11 @@
+{-# LANGUAGE ScopedTypeVariables #-}
+
+-- Trac #3406
+-- A pattern signature that discards the bound variables
+
+module T3406 where
+
+type ItemColID a b = Int -- Discards a,b
+
+get :: ItemColID a b -> a -> ItemColID a b
+get (x :: ItemColID a b) = x :: ItemColID a b \ No newline at end of file