summaryrefslogtreecommitdiff
path: root/testsuite/tests/typecheck/should_compile/ExplicitSpecificity4.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/typecheck/should_compile/ExplicitSpecificity4.hs')
-rw-r--r--testsuite/tests/typecheck/should_compile/ExplicitSpecificity4.hs10
1 files changed, 10 insertions, 0 deletions
diff --git a/testsuite/tests/typecheck/should_compile/ExplicitSpecificity4.hs b/testsuite/tests/typecheck/should_compile/ExplicitSpecificity4.hs
new file mode 100644
index 0000000000..4d615631b6
--- /dev/null
+++ b/testsuite/tests/typecheck/should_compile/ExplicitSpecificity4.hs
@@ -0,0 +1,10 @@
+{-# LANGUAGE DefaultSignatures #-}
+{-# LANGUAGE ScopedTypeVariables #-}
+
+module ExplicitSpecificity4 where
+
+class C a where
+ f :: forall {z}. z -> a -> a
+ default f :: forall {z}. z -> a -> a
+ f _ x = x
+