Support initialized map values in another global

Этот коммит содержится в:
Ayke van Laethem 2018-08-30 02:32:35 +02:00
родитель 42711c11e9
коммит 0b372ba5bd
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: E97FF5335DFDFDED

Просмотреть файл

@ -228,6 +228,8 @@ func (p *Program) getZeroValue(t types.Type) (Value, error) {
return &ZeroBasicValue{typ}, nil
case *types.Interface:
return &InterfaceValue{typ, nil}, nil
case *types.Map:
return &MapValue{typ, nil, nil}, nil
case *types.Pointer:
return &PointerValue{nil}, nil
case *types.Struct: