pretty: handle typed literal arrays
authorJean Privat <jean@pryen.org>
Fri, 24 Apr 2015 11:08:28 +0000 (18:08 +0700)
committerJean Privat <jean@pryen.org>
Mon, 4 May 2015 20:08:12 +0000 (16:08 -0400)
Signed-off-by: Jean Privat <jean@pryen.org>

src/pretty.nit

index 1bea99b..b4a14b3 100644 (file)
@@ -2067,6 +2067,11 @@ redef class AArrayExpr
        redef fun accept_pretty_printer(v) do
                v.consume "["
                v.visit_list n_exprs
+               if n_type != null then
+                       v.consume ":"
+                       v.adds
+                       v.visit n_type
+               end
                v.consume "]"
        end
 end