nitlanguage
/
nit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
044571b
)
syntax: fix variable context merge on unreashable branches
author
Jean Privat
<jean@pryen.org>
Fri, 8 Jan 2010 19:46:52 +0000
(14:46 -0500)
committer
Jean 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
patch
|
blob
|
history
diff --git
a/src/syntax/control_flow.nit
b/src/syntax/control_flow.nit
index
dd3ca06
..
6db1444
100644
(file)
--- a/
src/syntax/control_flow.nit
+++ b/
src/syntax/control_flow.nit
@@
-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