diff --git a/uni_modules/uts-tests/utssdk/Array.uts b/uni_modules/uts-tests/utssdk/Array.uts index 518744273c58ed6fa80d39b2e9c15e4b50b486ca..b0eac597d68b1b99d6ade175605f3e19f35cb166 100644 --- a/uni_modules/uts-tests/utssdk/Array.uts +++ b/uni_modules/uts-tests/utssdk/Array.uts @@ -256,7 +256,7 @@ export function testArray(): Result { expect(array1).toEqual([1, 100000, 21, 30, 4]); const array2 = [5, 1, 4, 2, 3]; - array2.sort((a, b):Int => a - b); + array2.sort((a, b):number => a - b); expect(array2).toEqual([1, 2, 3, 4, 5]); // const array3 = [5, "banana", 4, "apple", 3, "cherry", 2, "date", 1];