Allow adding string to number

This commit is contained in:
Deukhoofd 2019-01-31 14:46:12 +01:00
parent ce030c484f
commit da10ac2f1a
No known key found for this signature in database
GPG Key ID: B4C087AC81641654
1 changed files with 4 additions and 0 deletions

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)
{