Check arity on default decl for assoc types
authorSimon Peyton Jones <simonpj@microsoft.com>
Fri, 27 Nov 2015 15:16:17 +0000 (15:16 +0000)
committerSimon Peyton Jones <simonpj@microsoft.com>
Fri, 27 Nov 2015 15:18:02 +0000 (15:18 +0000)
commit49aae125686db914a73199d4f789370313892f8f
tree9802c86de90d360b434ccffddb9a9f290b73ca33
parentd25f8535a0178984f29178f983536ab40cc471a8
Check arity on default decl for assoc types

Fixes Trac #11136.  We should check arity before
doing tcTyClTyVars, because the latter crahes if
the arity isn't right.
compiler/typecheck/TcTyClsDecls.hs
testsuite/tests/indexed-types/should_fail/T11136.hs [new file with mode: 0644]
testsuite/tests/indexed-types/should_fail/T11136.stderr [new file with mode: 0644]
testsuite/tests/indexed-types/should_fail/all.T