From 410b66e9efd42250a5f693c65d11fca7b88c4535 Mon Sep 17 00:00:00 2001 From: Yuxiao Mao Date: Thu, 31 Oct 2024 12:34:15 +0100 Subject: [PATCH] [tests] add tests --- tests/unit/src/unit/issues/Issue11810.hx | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 tests/unit/src/unit/issues/Issue11810.hx diff --git a/tests/unit/src/unit/issues/Issue11810.hx b/tests/unit/src/unit/issues/Issue11810.hx new file mode 100644 index 00000000000..9259f34f863 --- /dev/null +++ b/tests/unit/src/unit/issues/Issue11810.hx @@ -0,0 +1,10 @@ +package unit.issues; + +class Issue11810 extends Test { + function test() { + var arrObj = []; + eq(null, arrObj[arrObj.length-1]); + var arrBytes : Array = []; + eq(0, arrBytes[arrBytes.length-1]); + } +}