加入自动类型转换
This commit is contained in:
Submodule Convention/[FLEE] updated: c9e2493796...90828989ad
Submodule Convention/[RScript] updated: 70051b46a5...3866cdd525
@@ -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);
|
||||||
|
Reference in New Issue
Block a user