X-Git-Url: http://nitlanguage.org diff --git a/src/transform.nit b/src/transform.nit index cdb6039..3e5865b 100644 --- a/src/transform.nit +++ b/src/transform.nit @@ -107,7 +107,7 @@ redef class AExpr visit_all(v) - if mtype == null and not is_typed then return # Skip broken + if is_broken then return # Skip broken accept_transform_visitor(v) end @@ -117,6 +117,7 @@ redef class AExpr super if other isa AExpr then if other.implicit_cast_to == null then other.implicit_cast_to = implicit_cast_to + other.vararg_decl = vararg_decl end end end @@ -369,6 +370,8 @@ redef class AArrayExpr # ~~~ redef fun full_transform_visitor(v) do + if is_broken then return # Skip broken + var nblock = v.builder.make_block var nnew = v.builder.make_new(with_capacity_callsite.as(not null), [v.builder.make_int(n_exprs.length)])