37 Star 66 Fork 363

OpenHarmony / arkcompiler_ets_frontend

 / 详情

[Bug]: complex type parameters cause the compiler to segfault

已完成
创建于  
2023-12-01 10:51

发生了什么问题?

Fail to compile the code :

class Common<T extends Common<T>> {
    constructor() { console.log("constructor") }

    static instantiate<S extends Common<S>> (factory: () => S, second: String): S {
        console.log("instantiate")
        const instance = factory()
        console.log(second)
        return instance
    }
}

class Y extends Common<Y> {}

export function main() {
    Y("foo")
}

get segfault

期望行为是什么?

compile the code

如何复现该缺陷

try to compile the code

其他补充信息

版本或分支信息

  • master
  • Release 3.2
  • Release 3.1
  • Release 3.0

评论 (1)

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

感谢提交Issue!关于Issue的交互操作,请访问OpenHarmony社区支持命令清单。如果有问题,请联系 @godmiaozi @zhuoli72 @徐城 。如果需要调整订阅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 @徐城 for help. If you need to change the subscription of a Pull Request or Issue, please visit the link.

openharmony_ci 添加了
 
waiting_for_assign
标签
肖培阳 任务状态待办的 修改为已拒绝
肖培阳 任务状态已拒绝 修改为已完成
肖培阳 任务状态已完成 修改为进行中
肖培阳 通过openharmony/arkcompiler_runtime_core Pull Request !1033任务状态进行中 修改为已完成
肖培阳 任务状态已完成 修改为进行中
肖培阳 任务状态进行中 修改为已完成

登录 后才可以发表评论

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

搜索帮助