This commit is contained in:
Dante
2026-05-22 11:54:15 -07:00
parent 05f197c291
commit b47ea35fe4
935 changed files with 1016163 additions and 1 deletions

View File

@ -0,0 +1,23 @@
package tests;
import NativeGen;
class TestNativeGen extends haxe.unit.TestCase
{
@:unreflective var unreflectiveValue:NativeGen;
@:unreflective public function unreflectiveFunction(inGen:NativeGen)
{
unreflectiveValue = inGen;
return unreflectiveValue.x==22;
}
public function testCreate()
{
var nGen:NativeGenStruct = null;
nGen.x = 22;
assertTrue(nGen.getValue()==22);
assertTrue(unreflectiveFunction(nGen) );
}
}