Register map type while declaration

pull/1755/head
teggot 2019-08-26 17:42:18 +03:00 committed by Alexander Medvednikov
parent 857cf00caf
commit f34d14d901
1 changed files with 1 additions and 0 deletions

View File

@ -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()