syntax: fix variable context merge on unreashable branches
authorJean Privat <jean@pryen.org>
Fri, 8 Jan 2010 19:46:52 +0000 (14:46 -0500)
committerJean Privat <jean@pryen.org>
Thu, 14 Jan 2010 16:43:40 +0000 (11:43 -0500)
Signed-off-by: Jean Privat <jean@pryen.org>

src/syntax/control_flow.nit

index dd3ca06..6db1444 100644 (file)
@@ -151,8 +151,10 @@ abstract class VariableContext
        do
                if ctx1.unreash then
                        merge(ctx2)
+                       return
                else if ctx2.unreash then
                        merge(ctx1)
+                       return
                end
                for v in _all_variables do
                        if not is_set(v) and ctx1.is_set(v) and ctx2.is_set(v) then