From f34d14d901ab5ed473bea0d002ed7a64bf33fa79 Mon Sep 17 00:00:00 2001 From: teggot Date: Mon, 26 Aug 2019 17:42:18 +0300 Subject: [PATCH] Register map type while declaration --- compiler/parser.v | 1 + 1 file changed, 1 insertion(+) diff --git a/compiler/parser.v b/compiler/parser.v index 81390b51e6..2c0c6327d7 100644 --- a/compiler/parser.v +++ b/compiler/parser.v @@ -2635,6 +2635,7 @@ fn (p mut Parser) map_init() string { p.gen('new_map_init($i, sizeof($val_type), ' + '(string[]){ $keys_gen }, ($val_type []){ $vals_gen } )') typ := 'map_$val_type' + p.register_map(typ) return typ } p.next()