From a56215de002eb411c365eb48604172fcea5573e2 Mon Sep 17 00:00:00 2001 From: oh_ci Date: Thu, 7 Aug 2025 08:34:13 +0000 Subject: [PATCH] =?UTF-8?q?=E5=9B=9E=E9=80=80=20'Pull=20Request=20!7161=20?= =?UTF-8?q?:=20String=20class=20drop=20number=20in=20indexing'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ets2panda/scripts/arkui.properties | 2 +- .../test/ast/parser/ets/FixedArray/StringFasta.ets | 10 +++++----- ets2panda/test/ast/parser/ets/StringFasta.ets | 10 +++++----- .../code_point_at.ets | 4 ++-- 4 files changed, 13 insertions(+), 13 deletions(-) diff --git a/ets2panda/scripts/arkui.properties b/ets2panda/scripts/arkui.properties index 07a8f38801..596d66d775 100644 --- a/ets2panda/scripts/arkui.properties +++ b/ets2panda/scripts/arkui.properties @@ -1,3 +1,3 @@ ARKUI_DEV_REPO=https://gitee.com/rri_opensource/koala_projects.git -ARKUI_DEV_BRANCH=panda_rev_9-string-to-int +ARKUI_DEV_BRANCH=panda_rev_9-array-length-int ARKUI_DEST=koala-sig diff --git a/ets2panda/test/ast/parser/ets/FixedArray/StringFasta.ets b/ets2panda/test/ast/parser/ets/FixedArray/StringFasta.ets index 54308f81cd..3cc0fa0bcd 100644 --- a/ets2panda/test/ast/parser/ets/FixedArray/StringFasta.ets +++ b/ets2panda/test/ast/parser/ets/FixedArray/StringFasta.ets @@ -157,16 +157,16 @@ function main(): void { /* @@? 53:27 Error TypeError: Type 'null' cannot be assigned to type 'Char' */ /* @@? 54:26 Error TypeError: Cannot find type 'HashMap'. */ /* @@? 54:57 Error TypeError: 'For-of' statement source expression is not of iterable type. */ -/* @@? 71:33 Error TypeError: Type 'Int' has no call signatures. */ -/* @@? 72:24 Error TypeError: Type 'Int' has no call signatures. */ -/* @@? 77:33 Error TypeError: Type 'Int' has no call signatures. */ -/* @@? 78:24 Error TypeError: Type 'Int' has no call signatures. */ +/* @@? 71:33 Error TypeError: Type 'Double' has no call signatures. */ +/* @@? 72:24 Error TypeError: Type 'Double' has no call signatures. */ +/* @@? 77:33 Error TypeError: Type 'Double' has no call signatures. */ +/* @@? 78:24 Error TypeError: Type 'Double' has no call signatures. */ /* @@? 84:41 Error TypeError: Cannot find type 'HashMap'. */ /* @@? 86:9 Error TypeError: Static property 'makeCumulative' must be accessed through it's class 'StringFasta' */ /* @@? 94:34 Error TypeError: Static property 'Random' must be accessed through it's class 'StringFasta' */ /* @@? 95:34 Error TypeError: Cannot find type 'HashMap'. */ /* @@? 95:65 Error TypeError: 'For-of' statement source expression is not of iterable type. */ -/* @@? 103:20 Error TypeError: Type 'Int' has no call signatures. */ +/* @@? 103:20 Error TypeError: Type 'Double' has no call signatures. */ /* @@? 112:16 Error TypeError: Static property 'fastaRepeat' must be accessed through it's class 'StringFasta' */ /* @@? 112:32 Error TypeError: Property 'count' must be accessed through 'this' */ /* @@? 113:16 Error TypeError: Static property 'fastaRandom' must be accessed through it's class 'StringFasta' */ diff --git a/ets2panda/test/ast/parser/ets/StringFasta.ets b/ets2panda/test/ast/parser/ets/StringFasta.ets index 47e9de0529..758d82839f 100644 --- a/ets2panda/test/ast/parser/ets/StringFasta.ets +++ b/ets2panda/test/ast/parser/ets/StringFasta.ets @@ -157,16 +157,16 @@ function main(): void { /* @@? 53:27 Error TypeError: Type 'null' cannot be assigned to type 'Char' */ /* @@? 54:26 Error TypeError: Cannot find type 'HashMap'. */ /* @@? 54:57 Error TypeError: 'For-of' statement source expression is not of iterable type. */ -/* @@? 71:33 Error TypeError: Type 'Int' has no call signatures. */ -/* @@? 72:24 Error TypeError: Type 'Int' has no call signatures. */ -/* @@? 77:33 Error TypeError: Type 'Int' has no call signatures. */ -/* @@? 78:24 Error TypeError: Type 'Int' has no call signatures. */ +/* @@? 71:33 Error TypeError: Type 'Double' has no call signatures. */ +/* @@? 72:24 Error TypeError: Type 'Double' has no call signatures. */ +/* @@? 77:33 Error TypeError: Type 'Double' has no call signatures. */ +/* @@? 78:24 Error TypeError: Type 'Double' has no call signatures. */ /* @@? 84:41 Error TypeError: Cannot find type 'HashMap'. */ /* @@? 86:9 Error TypeError: Static property 'makeCumulative' must be accessed through it's class 'StringFasta' */ /* @@? 94:34 Error TypeError: Static property 'Random' must be accessed through it's class 'StringFasta' */ /* @@? 95:34 Error TypeError: Cannot find type 'HashMap'. */ /* @@? 95:65 Error TypeError: 'For-of' statement source expression is not of iterable type. */ -/* @@? 103:20 Error TypeError: Type 'Int' has no call signatures. */ +/* @@? 103:20 Error TypeError: Type 'Double' has no call signatures. */ /* @@? 112:16 Error TypeError: Static property 'fastaRepeat' must be accessed through it's class 'StringFasta' */ /* @@? 112:32 Error TypeError: Property 'count' must be accessed through 'this' */ /* @@? 113:16 Error TypeError: Static property 'fastaRandom' must be accessed through it's class 'StringFasta' */ diff --git a/ets2panda/test/runtime/ets/const_variable_in_switch_statement/code_point_at.ets b/ets2panda/test/runtime/ets/const_variable_in_switch_statement/code_point_at.ets index d77bb5f8a9..b08891c755 100644 --- a/ets2panda/test/runtime/ets/const_variable_in_switch_statement/code_point_at.ets +++ b/ets2panda/test/runtime/ets/const_variable_in_switch_statement/code_point_at.ets @@ -13,9 +13,9 @@ * limitations under the License. */ -const a = ('X'.codePointAt(0)!).toInt() +const a = ('X'.codePointAt(0) as Double).toInt() arktest.assertEQ(a, 88); -const b = ('x'.codePointAt(0)!).toInt() +const b = ('x'.codePointAt(0) as Double).toInt() arktest.assertEQ(b, 120); let c = 88 let d = 0 -- Gitee