diff --git a/tests/unit/src/unit/issues/Issue11468.hx b/tests/unit/src/unit/issues/Issue11468.hx new file mode 100644 index 00000000000..6bbe01e9d63 --- /dev/null +++ b/tests/unit/src/unit/issues/Issue11468.hx @@ -0,0 +1,19 @@ +package unit.issues; +import unit.Test; + +class Issue11468 extends Test { + + #if hl + function test() { + var m = new Map>(); + t(m.get(0) == null); + var arr = new hl.NativeArray(1); + f(arr == null); + + var b1 = new hl.Bytes(0); + t(b1 == null); + var b2 = new hl.Bytes(1); + f(b2 == null); + } + #end +} \ No newline at end of file