nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
src/doc: introduce `html_comment` and `html_short_comment` services
[nit.git]
/
src
/
interpreter
/
naive_interpreter.nit
diff --git
a/src/interpreter/naive_interpreter.nit
b/src/interpreter/naive_interpreter.nit
index
c1bd59b
..
9b821e4
100644
(file)
--- a/
src/interpreter/naive_interpreter.nit
+++ b/
src/interpreter/naive_interpreter.nit
@@
-402,6
+402,8
@@
class NaiveInterpreter
var param = msignature.mparameters[i]
var j = map.map.get_or_null(i)
if j == null then
+ # default value
+ res.add(null_instance)
continue
end
if param.is_vararg and map.vararg_decl > 0 then