加入自动类型转换

This commit is contained in:
2025-10-16 10:25:31 +08:00
parent 9d7fbf9786
commit a91c9741e4
3 changed files with 7 additions and 6 deletions

View File

@@ -1,5 +1,4 @@
using Convention.RScript; using Convention.RScript;
using Flee.PublicTypes;
using System; using System;
public class Program public class Program
@@ -9,11 +8,13 @@ public class Program
RScriptEngine engine = new(); RScriptEngine engine = new();
RScriptImportClass import = new() RScriptImportClass import = new()
{ {
typeof(Math) typeof(Math),
}; };
import.Add(typeof(ExpressionMath));
var result = engine.Run(@" var result = engine.Run(@"
double i; int i;
i = 2.0; i = 2.2;
label(test); label(test);
goto(true,func1); goto(true,func1);
goto(100>i,test); goto(100>i,test);