Allow adding string to number
This commit is contained in:
@@ -290,6 +290,10 @@ namespace Upsilon.Evaluator
|
|||||||
{
|
{
|
||||||
return ((ScriptNumber)left) + ((ScriptNumber)right);
|
return ((ScriptNumber)left) + ((ScriptNumber)right);
|
||||||
}
|
}
|
||||||
|
if (right.Type == Type.String)
|
||||||
|
{
|
||||||
|
return new ScriptString(left + right.ToString());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else if (left.Type == Type.String)
|
else if (left.Type == Type.String)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user