From 0b485e8c09a70bc8a05562c8d5a2cc496e1dae22 Mon Sep 17 00:00:00 2001 From: Jean Privat Date: Tue, 15 Jul 2014 15:09:53 -0400 Subject: [PATCH] nitcc_runtime: force static type of Nodes::children We want a mutable sequence here! Signed-off-by: Jean Privat --- lib/nitcc_runtime.nit | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/nitcc_runtime.nit b/lib/nitcc_runtime.nit index 51ee0c8..9d455c8 100644 --- 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 -- 1.7.9.5