Implicit parameters should not be allowed in class and instance declarations
Trac #8912 pointed out that GHC 7.4 and 7.6 have omitted this test, although 7.2 and earlier had it. This patch puts the test back in, and refactors a little.
Showing
- compiler/typecheck/TcValidity.lhs 40 additions, 34 deletionscompiler/typecheck/TcValidity.lhs
- testsuite/tests/typecheck/should_fail/T7019.stderr 1 addition, 1 deletiontestsuite/tests/typecheck/should_fail/T7019.stderr
- testsuite/tests/typecheck/should_fail/T7019a.stderr 2 additions, 1 deletiontestsuite/tests/typecheck/should_fail/T7019a.stderr
- testsuite/tests/typecheck/should_fail/T8912.hs 11 additions, 0 deletionstestsuite/tests/typecheck/should_fail/T8912.hs
- testsuite/tests/typecheck/should_fail/T8912.stderr 6 additions, 0 deletionstestsuite/tests/typecheck/should_fail/T8912.stderr
- testsuite/tests/typecheck/should_fail/all.T 1 addition, 0 deletionstestsuite/tests/typecheck/should_fail/all.T
- testsuite/tests/typecheck/should_fail/tcfail041.stderr 5 additions, 4 deletionstestsuite/tests/typecheck/should_fail/tcfail041.stderr
- testsuite/tests/typecheck/should_fail/tcfail211.stderr 5 additions, 5 deletionstestsuite/tests/typecheck/should_fail/tcfail211.stderr
Loading
Please register or sign in to comment