From: Jean Privat Date: Sat, 7 Nov 2015 03:42:40 +0000 (-0500) Subject: typing: AForBlock propagates error to the main AForExpr X-Git-Tag: v0.8~102^2~4 X-Git-Url: http://nitlanguage.org typing: AForBlock propagates error to the main AForExpr Signed-off-by: Jean Privat --- diff --git a/src/semantize/typing.nit b/src/semantize/typing.nit index 8a23a73..a6af9ba 100644 --- a/src/semantize/typing.nit +++ b/src/semantize/typing.nit @@ -1134,6 +1134,7 @@ redef class AForExpr var mtype = v.visit_expr(g.n_expr) if mtype == null then return g.do_type_iterator(v, mtype) + if g.is_broken then is_broken = true end v.visit_stmt(n_block)