Support initialized map values in another global

This commit is contained in:
Ayke van Laethem
2018-08-30 02:32:35 +02:00
parent 42711c11e9
commit 0b372ba5bd
+2
View File
@@ -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: