summaryrefslogtreecommitdiff
path: root/testsuite/tests/rename/should_compile/T5331.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/rename/should_compile/T5331.hs')
-rw-r--r--testsuite/tests/rename/should_compile/T5331.hs19
1 files changed, 19 insertions, 0 deletions
diff --git a/testsuite/tests/rename/should_compile/T5331.hs b/testsuite/tests/rename/should_compile/T5331.hs
new file mode 100644
index 0000000000..4e7343e56b
--- /dev/null
+++ b/testsuite/tests/rename/should_compile/T5331.hs
@@ -0,0 +1,19 @@
+{-# LANGUAGE GADTs, ScopedTypeVariables #-}
+{-# OPTIONS_GHC -Wall #-}
+
+module Foo where
+
+data T a
+
+instance Eq (T a)
+{-# SPECIALISE instance forall a.Eq (T Int) #-}
+
+data S = forall a.S1
+
+data W where
+ W1 :: forall a. W
+
+f :: forall a. Int
+f = 3
+
+