Support initialized map values in another global
Этот коммит содержится в:
родитель
42711c11e9
коммит
0b372ba5bd
1 изменённых файлов: 2 добавлений и 0 удалений
|
@ -228,6 +228,8 @@ func (p *Program) getZeroValue(t types.Type) (Value, error) {
|
||||||
return &ZeroBasicValue{typ}, nil
|
return &ZeroBasicValue{typ}, nil
|
||||||
case *types.Interface:
|
case *types.Interface:
|
||||||
return &InterfaceValue{typ, nil}, nil
|
return &InterfaceValue{typ, nil}, nil
|
||||||
|
case *types.Map:
|
||||||
|
return &MapValue{typ, nil, nil}, nil
|
||||||
case *types.Pointer:
|
case *types.Pointer:
|
||||||
return &PointerValue{nil}, nil
|
return &PointerValue{nil}, nil
|
||||||
case *types.Struct:
|
case *types.Struct:
|
||||||
|
|
Загрузка…
Создание таблицы
Сослаться в новой задаче