From f7b80c3c62121f0a9adf65350951b1bc9149e257 Mon Sep 17 00:00:00 2001 From: joe-conigliaro Date: Tue, 11 Feb 2020 14:45:33 +1100 Subject: [PATCH] v2: fix fixed array parsing --- vlib/v/parser/parse_type.v | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vlib/v/parser/parse_type.v b/vlib/v/parser/parse_type.v index 2bce463e6e..51b2033192 100644 --- a/vlib/v/parser/parse_type.v +++ b/vlib/v/parser/parse_type.v @@ -11,9 +11,9 @@ pub fn (p mut Parser) parse_array_type(nr_muls int) table.Type { // fixed array if p.tok.kind == .number { size := p.tok.lit.int() - elem_type := p.parse_type() + p.next() p.check(.rsbr) - p.check_name() + elem_type := p.parse_type() idx := p.table.find_or_register_array_fixed(elem_type, size, 1) return table.new_type_ptr(idx, nr_muls) }