37 Star 66 Fork 363

OpenHarmony / arkcompiler_ets_frontend

 / 详情

[Bug]: The Record duplicate key check is missing.

已拒绝
创建于  
2024-05-14 14:42

发生了什么问题?

The following code gets unexpected results:

function main(){
    let a: Record<number, number> = {
        1: 1,
        1: 2,
        2: 3   //CTE, dup key
    } 
}

期望行为是什么?

Expecting compilation to fail and throw duplicate key exception

如何复现该缺陷

function main(){
    let a: Record<number, number> = {
        1: 1,
        1: 2,
        2: 3   //CTE, dup key
    } 
}

其他补充信息

版本或分支信息

  • master
  • Release 4.1
  • Release 4.0
  • Release 3.2

评论 (1)

xuxinjie3 创建了任务
xuxinjie3 添加了
 
bug
标签
展开全部操作日志

感谢提交Issue!关于Issue的交互操作,请访问OpenHarmony社区支持命令清单。如果有问题,请联系 @godmiaozi @zhuoli72 @徐城 @Urakov Alexandr @Vsevolod Pukhov 。如果需要调整订阅PR、Issue的变更状态,请访问链接

Thanks for submitting the issue. For more commands, please visit OpenHarmony Command List. If you have any questions, please refer to committer @godmiaozi @zhuoli72 @徐城 @Urakov Alexandr @Vsevolod Pukhov for help. If you need to change the subscription of a Pull Request or Issue, please visit the link.

登录 后才可以发表评论

状态
负责人
项目
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
预计工期 (小时)
参与者(2)
7387629 openharmony ci 1656582662 14315329 xuxjeeee 1715740577
1
https://gitee.com/openharmony/arkcompiler_ets_frontend.git
git@gitee.com:openharmony/arkcompiler_ets_frontend.git
openharmony
arkcompiler_ets_frontend
arkcompiler_ets_frontend

搜索帮助