summaryrefslogtreecommitdiff
path: root/testsuite/tests/unsatisfiable/UnsatDefault.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/unsatisfiable/UnsatDefault.hs')
-rw-r--r--testsuite/tests/unsatisfiable/UnsatDefault.hs14
1 files changed, 14 insertions, 0 deletions
diff --git a/testsuite/tests/unsatisfiable/UnsatDefault.hs b/testsuite/tests/unsatisfiable/UnsatDefault.hs
new file mode 100644
index 0000000000..5593fa092e
--- /dev/null
+++ b/testsuite/tests/unsatisfiable/UnsatDefault.hs
@@ -0,0 +1,14 @@
+{-# LANGUAGE DataKinds #-}
+{-# LANGUAGE DefaultSignatures #-}
+
+module UnsatDefault where
+
+import GHC.TypeError
+
+class C a where
+ method :: a
+ default method :: Unsatisfiable (Text "Please define the method manually. You can try...") => a
+ method = unsatisfiable
+
+
+instance C Int