Allow adding string to number

This commit is contained in:
Deukhoofd committed 2019-01-31 14:46:12 +01:00
1 parent ce030c484f
commit da10ac2f1a
1 file changed
+4
+4
View File
@@ -290,6 +290,10 @@ namespace Upsilon.Evaluator
{
return ((ScriptNumber)left) + ((ScriptNumber)right);
}
if (right.Type == Type.String)
{
return new ScriptString(left + right.ToString());
}
}
else if (left.Type == Type.String)
{