projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
140fb02
)
Re-enable assertion now the new type checker is in
author
simonpj@microsoft.com
<unknown>
Thu, 31 Mar 2011 10:21:16 +0000
(10:21 +0000)
committer
simonpj@microsoft.com
<unknown>
Thu, 31 Mar 2011 10:21:16 +0000
(10:21 +0000)
(See Trac #3011.)
compiler/typecheck/TcMType.lhs
patch
|
blob
|
history
diff --git
a/compiler/typecheck/TcMType.lhs
b/compiler/typecheck/TcMType.lhs
index
9d74ff8
..
7453334
100644
(file)
--- a/
compiler/typecheck/TcMType.lhs
+++ b/
compiler/typecheck/TcMType.lhs
@@
-364,8
+364,8
@@
writeMetaTyVarRef tyvar ref ty
| otherwise
= do { meta_details <- readMutVar ref;
- ; WARN( not (isFlexi meta_details),
- hang (text "Double update of meta tyvar")
+ ; ASSERT2( isFlexi meta_details,
+ hang (text "Double update of meta tyvar")
2 (ppr tyvar $$ ppr meta_details) )
traceTc "writeMetaTyVar" (ppr tyvar <+> text ":=" <+> ppr ty)