已关闭
[Bug]: Fix FixedArray constructor to require spec-defined (len, elem) signature #11942
zhaoshuting创建于  8月14日关闭于  16 天前
zhaoshuting
zhaoshuting
8月14日 创建

感谢对OpenHarmony社区的支持与关注,欢迎反馈缺陷。

发生了什么问题?

The old FixedArray/ValueArray constructor accepted both 1-arg and 2-arg forms:

let a = new FixedArray<int>(10);       // 1-arg: accepted (shouldn't be)
let b = new FixedArray<string>(4);     // 1-arg: lowering synthesized "new String()" per element

Bug according to the spec,
image.png

期望行为是什么?

1-arg compiles with CTE
2-arg compiles successfully

如何复现该缺陷

compile the test case

其他补充信息

版本或分支信息

likedislike
zhaoshutingzhaoshuting
8月14日 添加了label:bug
openharmony_ci
openharmony_ci成员
8月14日 评论:

感谢提交Issue!关于Issue的交互操作,请访问OpenHarmony社区支持命令清单。如果有问题,请联系 [@xucheng46](https://gitcode.com/xucheng46) [@trubachevilya](https://gitcode.com/trubachevilya) [@vpukhov](https://gitcode.com/vpukhov) [@chernykhsergey](https://gitcode.com/chernykhsergey) [@zhuoli](https://gitcode.com/zhuoli) [@dddzzzhhh](https://gitcode.com/dddzzzhhh) [@Wangyuzhong11](https://gitcode.com/Wangyuzhong11) 。如果需要调整订阅PR、Issue的变更状态,请访问链接。


Thanks for submitting the issue. For more commands, please visit OpenHarmony Command List. If you have any questions, please refer to committer gitcode for help. If you need to change the subscription of a Pull Request or Issue, please visit the link.

likedislike
openharmony_ciopenharmony_ci成员
8月14日 添加了label:waiting_for_assign
zhaoshutingzhaoshuting
8月14日 关联了pull request:Fix FixedArray constructor
zhaoshutingzhaoshuting
8月14日 关联了pull request:fix FixedArray constructor
zhaoshutingzhaoshuting
8月17日 关联了pull request:fix fixedarray ctor
zhaoshutingzhaoshuting
8月17日 关联了pull request:fix FixedArray ctor
zhaoshutingzhaoshuting
8月17日 关联了pull request:fix FixedArray ctor
zhaoshutingzhaoshuting
8月18日 关联了pull request:fix fixedarray ctor
zhaoshutingzhaoshuting
8月19日 修改了issue 的描述
zhaoshutingzhaoshuting
8月19日 修改标题为 “[Bug]: Fix FixedArray constructor to require spec-defined (len, elem) signature”,原标题为“[Bug]: fix FixedArray constructor”
zhaoshuting
zhaoshuting
8月26日 评论:

start build

likedislike
openharmony_ciopenharmony_ci成员
16 天前 关闭了 issue
openharmony_ciopenharmony_ci成员
16 天前 issue状态由 待办的 改变为 已完成