From 2106da9f80bf3a9694681616265197f69e9b1448 Mon Sep 17 00:00:00 2001 From: tot0p Date: Tue, 20 Feb 2024 22:02:12 +0100 Subject: [PATCH] add map string --- interpreter/eclaType/map.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/interpreter/eclaType/map.go b/interpreter/eclaType/map.go index 2757045..54e3052 100644 --- a/interpreter/eclaType/map.go +++ b/interpreter/eclaType/map.go @@ -146,8 +146,9 @@ func (m *Map) Add(value Type) (Type, error) { for index, v := range value.(*Map).Keys { m.Set(v, value.(*Map).Values[index]) } - return m, nil + case String: + return m.GetString().Add(value) case *Any: return m.Add(value.(*Any).Value) }