X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=blobdiff_plain;f=compiler%2Ftypecheck%2FTcMatches.lhs;h=452bae792d2c8521f4a91ad1b925cc4d0e7f74e0;hp=f02b74ae0fcbf202aaff1ec55ef40e75131ace62;hb=58de6cb725982dd1f57803cc838f233d5fd9c42c;hpb=550bd53be2ca1241a46517187d64fb0d077aeda0 diff --git a/compiler/typecheck/TcMatches.lhs b/compiler/typecheck/TcMatches.lhs index f02b74a..452bae7 100644 --- a/compiler/typecheck/TcMatches.lhs +++ b/compiler/typecheck/TcMatches.lhs @@ -509,6 +509,11 @@ tcDoStmt ctxt (ExprStmt rhs then_op _) (reft,res_ty) thing_inside ; thing <- thing_inside (reft, new_res_ty) ; return (ExprStmt rhs' then_op' rhs_ty, thing) } +tcDoStmt ctxt (RecStmt {}) res_ty thing_inside + = failWithTc (ptext SLIT("Illegal 'rec' stmt in") <+> pprStmtContext ctxt) + -- This case can't be caught in the renamer + -- see RnExpr.checkRecStmt + tcDoStmt ctxt stmt res_ty thing_inside = pprPanic "tcDoStmt: unexpected Stmt" (ppr stmt)