summaryrefslogtreecommitdiff
path: root/testsuite/tests/rename/should_compile/T20609b.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/rename/should_compile/T20609b.hs')
-rw-r--r--testsuite/tests/rename/should_compile/T20609b.hs13
1 files changed, 13 insertions, 0 deletions
diff --git a/testsuite/tests/rename/should_compile/T20609b.hs b/testsuite/tests/rename/should_compile/T20609b.hs
new file mode 100644
index 0000000000..2e08bdcee2
--- /dev/null
+++ b/testsuite/tests/rename/should_compile/T20609b.hs
@@ -0,0 +1,13 @@
+module T20609b where
+
+-- Triggers the warning (definition/binding sites):
+-- ------------------------------------------------
+
+class MyClass c where
+ forall :: c -> ()
+
+-- Does not trigger the warning (use sites):
+-- -----------------------------------------
+
+instance MyClass () where
+ forall = id