From 659339245a1158d99220dd4ac896412ebbeb66dd Mon Sep 17 00:00:00 2001 From: Konstantin Kuznetsov Date: Wed, 20 Sep 2023 20:28:52 +0300 Subject: [PATCH] Fix compilation issue with ets test Signed-off-by: Konstantin Kuznetsov --- plugins/ets/tests/ets_test_suite/gc/stress/test_gc_old.ets | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/ets/tests/ets_test_suite/gc/stress/test_gc_old.ets b/plugins/ets/tests/ets_test_suite/gc/stress/test_gc_old.ets index c473fac8..a0b717f3 100644 --- a/plugins/ets/tests/ets_test_suite/gc/stress/test_gc_old.ets +++ b/plugins/ets/tests/ets_test_suite/gc/stress/test_gc_old.ets @@ -50,7 +50,7 @@ class TestGCOld { private static mutatorSum : long = 0; private static aexport : int[]; - private static trees : TreeNode[] | null; + private static trees : (TreeNode | null)[] | null; private static where : int = 0; private static rnd = new Random(); @@ -175,7 +175,7 @@ class TestGCOld { } path >>= 1; } - let tmp : TreeNode; + let tmp : TreeNode | null; if ((path & 1) == 0) { tmp = tn1.left; tn1.left = tn2.left; @@ -208,7 +208,7 @@ class TestGCOld { } } - private static replaceTree(full : TreeNode, partial : TreeNode) : void { + private static replaceTree(full : TreeNode | null, partial : TreeNode | null) : void { let dir : boolean = (partial.value % 2) == 0; TestGCOld.actuallyMut++; TestGCOld.doReplaceTreeWork(full, partial, dir); -- Gitee