From: Jean Privat Date: Sun, 31 May 2015 01:45:33 +0000 (-0400) Subject: scope: the `else` of the assert is a scoped block X-Git-Tag: v0.7.6~72^2~1 X-Git-Url: http://nitlanguage.org scope: the `else` of the assert is a scoped block Signed-off-by: Jean Privat --- diff --git a/src/semantize/scope.nit b/src/semantize/scope.nit index 4ea5f27..a69c57a 100644 --- a/src/semantize/scope.nit +++ b/src/semantize/scope.nit @@ -429,6 +429,14 @@ redef class AWithExpr end end +redef class AAssertExpr + redef fun accept_scope_visitor(v) + do + v.enter_visit(n_expr) + v.enter_visit_block(n_else, null) + end +end + redef class AVarFormExpr # The associated variable var variable: nullable Variable