nitlanguage
/
nit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
13c7ebf
)
nitcc_runtime: force static type of Nodes::children
author
Jean Privat
<jean@pryen.org>
Tue, 15 Jul 2014 19:09:53 +0000
(15:09 -0400)
committer
Jean Privat
<jean@pryen.org>
Tue, 15 Jul 2014 19:09:53 +0000
(15:09 -0400)
We want a mutable sequence here!
Signed-off-by: Jean Privat <jean@pryen.org>
lib/nitcc_runtime.nit
patch
|
blob
|
history
diff --git
a/lib/nitcc_runtime.nit
b/lib/nitcc_runtime.nit
index
51ee0c8
..
9d455c8
100644
(file)
--- a/
lib/nitcc_runtime.nit
+++ b/
lib/nitcc_runtime.nit
@@
-491,7
+491,7
@@
end
# A hogeneous sequence of node, used to represent unbounded lists (and + modifier)
class Nodes[T: Node]
super Node
- redef var children = new Array[T]
+ redef var children: Array[T] = new Array[T]
end
# A production with a specific, named and statically typed children