summaryrefslogtreecommitdiff
path: root/testsuite/tests/generics/all.T
diff options
context:
space:
mode:
authorRyanGlScott <ryan.gl.scott@gmail.com>2015-10-03 20:06:48 +0200
committerBen Gamari <ben@smart-cactus.org>2015-10-03 20:36:34 +0200
commit2f74be9c8af1e167b21df1a27b96b6626cd446a9 (patch)
treeb993d2b8c2efdc00081f6243bc744fd0d2ad3bae /testsuite/tests/generics/all.T
parent0eb8fcd94b29ee9997b386e64203037bdf2aaa04 (diff)
downloadhaskell-2f74be9c8af1e167b21df1a27b96b6626cd446a9.tar.gz
Fill in associated type defaults with DeriveAnyClass
Summary: Unlike `-XDefaultSignatures`, `-XDeriveAnyClass` would not fill in associated type family defaults when deriving a class which contained them. In order to fix this properly, `tcATDefault` needed to be used from `TcGenDeriv`. To avoid a module import cycle, `tcATDefault` was moved from `TcInstDcls` to `TcClsDcl`. Fixes #10361. Test Plan: ./validate Reviewers: kosmikus, dreixel, bgamari, austin, simonpj Subscribers: thomie Differential Revision: https://phabricator.haskell.org/D1283 GHC Trac Issues: #10361
Diffstat (limited to 'testsuite/tests/generics/all.T')
-rw-r--r--testsuite/tests/generics/all.T2
1 files changed, 2 insertions, 0 deletions
diff --git a/testsuite/tests/generics/all.T b/testsuite/tests/generics/all.T
index 31a6809c82..cbf70cf8bf 100644
--- a/testsuite/tests/generics/all.T
+++ b/testsuite/tests/generics/all.T
@@ -40,3 +40,5 @@ test('T8468', normal, compile_fail, [''])
test('T8479', normal, compile, [''])
test('T9563', normal, compile, [''])
test('T10030', normal, compile_and_run, [''])
+test('T10361a', normal, compile, [''])
+test('T10361b', normal, compile, [''])