lang: core, funcs: Use the correct zero type

I wasn't using the correct contained type here.
This commit is contained in:
James Shubin
2024-08-19 00:46:23 -04:00
parent 2e774215e4
commit 9a5f6a5bd3
4 changed files with 4 additions and 4 deletions

View File

@@ -234,7 +234,7 @@ func (obj *MapLookupFunc) Copy() interfaces.Func {
func (obj *MapLookupFunc) Function(ctx context.Context, input []types.Value) (types.Value, error) {
m := (input[0]).(*types.MapValue)
key := input[1]
//zero := m.Type().New() // the zero value
//zero := m.Type().Val.New() // the zero value
val, exists := m.Lookup(key)
if exists {