|
@@ -537,6 +537,7 @@ class TestType extends Test {
|
|
gf1(2);
|
|
gf1(2);
|
|
gf1("foo");
|
|
gf1("foo");
|
|
gf1(true);
|
|
gf1(true);
|
|
|
|
+ gf1({foo: 1});
|
|
|
|
|
|
gf1(new haxe.Template("foo"));
|
|
gf1(new haxe.Template("foo"));
|
|
|
|
|
|
@@ -548,8 +549,8 @@ class TestType extends Test {
|
|
hsf(TestType, "gf1_haxe_Template");
|
|
hsf(TestType, "gf1_haxe_Template");
|
|
|
|
|
|
hsf(TestType, "gf1_haxe_ds_GenericStack_Int");
|
|
hsf(TestType, "gf1_haxe_ds_GenericStack_Int");
|
|
|
|
+ hsf(TestType, "gf1_anon_foo_Int");
|
|
t(typeError(gf1(null))); // monos don't work
|
|
t(typeError(gf1(null))); // monos don't work
|
|
- t(typeError(gf1( { foo:1 } ))); // structures don't work
|
|
|
|
|
|
|
|
eq("foo[1,2]", gf2("foo", [1, 2]));
|
|
eq("foo[1,2]", gf2("foo", [1, 2]));
|
|
eq("foo[[1,2]]", gf2("foo", [[1, 2]]));
|
|
eq("foo[[1,2]]", gf2("foo", [[1, 2]]));
|