nitlanguage
/
nit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c3b5c15
)
niti: use `write_attribute` in old path of initializers
author
Jean Privat
<jean@pryen.org>
Fri, 5 Dec 2014 20:54:36 +0000
(15:54 -0500)
committer
Jean Privat
<jean@pryen.org>
Sat, 6 Dec 2014 05:42:28 +0000
(
00:42
-0500)
Signed-off-by: Jean Privat <jean@pryen.org>
src/interpreter/naive_interpreter.nit
patch
|
blob
|
history
diff --git
a/src/interpreter/naive_interpreter.nit
b/src/interpreter/naive_interpreter.nit
index
144788d
..
71600e2
100644
(file)
--- a/
src/interpreter/naive_interpreter.nit
+++ b/
src/interpreter/naive_interpreter.nit
@@
-476,7
+476,7
@@
class NaiveInterpreter
self.send(p, args)
else if p isa MAttribute then
assert recv isa MutableInstance
- recv.attributes[p] = arguments[i]
+ write_attribute(p, recv, arguments[i])
i += 1
else abort
end