summaryrefslogtreecommitdiff
path: root/testsuite/tests
diff options
context:
space:
mode:
authorSimon Peyton Jones <simonpj@microsoft.com>2016-11-23 16:00:00 +0000
committerSimon Peyton Jones <simonpj@microsoft.com>2016-11-25 11:18:54 +0000
commit18d0bdd3848201882bae167e3b15fd797d217e93 (patch)
tree64a070080d0bf8025d59f8f9c94386ef4970e0ba /testsuite/tests
parent1eec1f21268af907f59b5d5c071a9a25de7369c7 (diff)
downloadhaskell-18d0bdd3848201882bae167e3b15fd797d217e93.tar.gz
Allow TyVars in TcTypes
Up to now we've had a rule that a TyVar can't apppear in a type seen by the type checker; they should all be TcTyVars. But: a) With -XTypeInType it becomes much harder to exclude them; see Note [TcTyVars in the typechecker] in TcType. b) It's unnecessary to exculde them; instead we can just treat a TyVar just like vanillaSkolemTv. This is what was causing an ASSERT error in indexed-types/should_fail/T12041, reported in Trac #12826. That patch allows a TyVar in a TcType. The most significant change is to make Var.tcTyVarDetails return vanillaSkolemTv. In fact it already did, but (a) it was not documented, and (b) we never exploited it. Now we rely on it.
Diffstat (limited to 'testsuite/tests')
-rw-r--r--testsuite/tests/indexed-types/should_fail/all.T3
1 files changed, 1 insertions, 2 deletions
diff --git a/testsuite/tests/indexed-types/should_fail/all.T b/testsuite/tests/indexed-types/should_fail/all.T
index 8403ea80cd..4b0e994610 100644
--- a/testsuite/tests/indexed-types/should_fail/all.T
+++ b/testsuite/tests/indexed-types/should_fail/all.T
@@ -137,6 +137,5 @@ test('T10899', normal, compile_fail, [''])
test('T11136', normal, compile_fail, [''])
test('T7788', normal, compile_fail, [''])
test('T11450', normal, compile_fail, [''])
-test('T12041', when(compiler_debugged(), expect_broken(12826)),
- compile_fail, [''])
+test('T12041', normal, compile_fail, [''])
test('T12522a', normal, compile_fail, [''])