summaryrefslogtreecommitdiff
path: root/testsuite/tests/typecheck/should_fail/AssocTyDef08.hs
diff options
context:
space:
mode:
authorMax Bolingbroke <batterseapower@hotmail.com>2011-09-06 08:41:20 +0100
committerMax Bolingbroke <batterseapower@hotmail.com>2011-09-09 08:25:31 +0100
commiteaf6a58af5da4b8d033747992700235fed259145 (patch)
tree3b80567b78ae0da9c0764d7d305c644d32a8e99f /testsuite/tests/typecheck/should_fail/AssocTyDef08.hs
parent12850c11733d0919f6df6c4ab2c6d40495bb7198 (diff)
downloadhaskell-eaf6a58af5da4b8d033747992700235fed259145.tar.gz
Test associated type defaults
Diffstat (limited to 'testsuite/tests/typecheck/should_fail/AssocTyDef08.hs')
-rw-r--r--testsuite/tests/typecheck/should_fail/AssocTyDef08.hs5
1 files changed, 5 insertions, 0 deletions
diff --git a/testsuite/tests/typecheck/should_fail/AssocTyDef08.hs b/testsuite/tests/typecheck/should_fail/AssocTyDef08.hs
new file mode 100644
index 0000000000..6a7d808bb7
--- /dev/null
+++ b/testsuite/tests/typecheck/should_fail/AssocTyDef08.hs
@@ -0,0 +1,5 @@
+module AssocTyDef07 where
+
+class Cls a where
+ type Typ a = Int
+ -- Default without family OR extension flag