summaryrefslogtreecommitdiff
path: root/testsuite/tests/deriving/should_fail/T10598_fail2.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/deriving/should_fail/T10598_fail2.hs')
-rw-r--r--testsuite/tests/deriving/should_fail/T10598_fail2.hs5
1 files changed, 5 insertions, 0 deletions
diff --git a/testsuite/tests/deriving/should_fail/T10598_fail2.hs b/testsuite/tests/deriving/should_fail/T10598_fail2.hs
new file mode 100644
index 0000000000..ba77fe0fbf
--- /dev/null
+++ b/testsuite/tests/deriving/should_fail/T10598_fail2.hs
@@ -0,0 +1,5 @@
+{-# LANGUAGE DerivingStrategies #-}
+module T10598_fail2 where
+
+data A = A Int deriving anyclass Eq
+newtype B = B Int deriving newtype Eq