nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
icode: duplicate ICodeN::closure_defs in dup_with
[nit.git]
/
src
/
icode
/
icode_tools.nit
diff --git
a/src/icode/icode_tools.nit
b/src/icode/icode_tools.nit
index
3f6c91e
..
3884840
100644
(file)
--- a/
src/icode/icode_tools.nit
+++ b/
src/icode/icode_tools.nit
@@
-170,6
+170,10
@@
redef class ICode
private fun dup_with(d: ICodeDupContext)
do
var c = inner_dup_with(d)
private fun dup_with(d: ICodeDupContext)
do
var c = inner_dup_with(d)
+ if self isa ICodeN then
+ assert c isa ICodeN
+ c.closure_defs = closure_defs
+ end
var r = result
if r != null then c.result = d.dup_ireg(r)
c.location = location
var r = result
if r != null then c.result = d.dup_ireg(r)
c.location = location