Allow adding string to number
This commit is contained in:
parent
ce030c484f
commit
da10ac2f1a
|
@ -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)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue