加入自动类型转换
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 Flee.PublicTypes;
|
||||
using System;
|
||||
|
||||
public class Program
|
||||
@@ -9,11 +8,13 @@ public class Program
|
||||
RScriptEngine engine = new();
|
||||
RScriptImportClass import = new()
|
||||
{
|
||||
typeof(Math)
|
||||
typeof(Math),
|
||||
|
||||
};
|
||||
import.Add(typeof(ExpressionMath));
|
||||
var result = engine.Run(@"
|
||||
double i;
|
||||
i = 2.0;
|
||||
int i;
|
||||
i = 2.2;
|
||||
label(test);
|
||||
goto(true,func1);
|
||||
goto(100>i,test);
|
||||
|
Reference in New Issue
Block a user