nitlanguage
/
nit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ddbab9c
)
java_compiler: handle multi-varargs
author
Jean Privat
<jean@pryen.org>
Tue, 10 Nov 2015 16:23:59 +0000
(11:23 -0500)
committer
Jean Privat
<jean@pryen.org>
Tue, 10 Nov 2015 16:23:59 +0000
(11:23 -0500)
Signed-off-by: Jean Privat <jean@pryen.org>
src/compiler/java_compiler.nit
patch
|
blob
|
history
diff --git
a/src/compiler/java_compiler.nit
b/src/compiler/java_compiler.nit
index
84b5a47
..
7468d28
100644
(file)
--- a/
src/compiler/java_compiler.nit
+++ b/
src/compiler/java_compiler.nit
@@
-526,8
+526,8
@@
class JavaCompilerVisitor
res.add(null_instance)
continue
end
- if param.is_vararg and map.vararg_decl > 0 then
- var vararg = exprs.sub(j, map.vararg_decl)
+ if param.is_vararg and args[i].vararg_decl > 0 then
+ var vararg = exprs.sub(j, args[i].vararg_decl)
var elttype = param.mtype
var arg = self.vararg_instance(mpropdef, recv, vararg, elttype)
res.add(arg)