nitcc_runtime: force static type of Nodes::children
authorJean Privat <jean@pryen.org>
Tue, 15 Jul 2014 19:09:53 +0000 (15:09 -0400)
committerJean 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

index 51ee0c8..9d455c8 100644 (file)
@@ -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