microsoft / microsoft/TypeScript
Wrong `super` in class element decorator
Đang mở
@rbuckton đang làm issue này rồi.
Từ ngày 21/2/2024.
Needs Investigation
- Ngôn ngữ chính
- Go
- Star
- 111k
- Fork
- 14.4k
- Merge trung bình
- 1 ngày 19 giờ
- Pull request đã merge (30 ngày)
- 117
Mô tả
🔎 Search Terms
super decorators
🕗 Version & Regression Information
- This is the behavior in every version I tried
⏯ Playground Link
💻 Code
I'm targeting ESNext
class A extends class { a(_1: any, _2: any) { console.log("super.a") } } {
foo() {
let after = () => {};
class B {
@super.a f = "";
}
after();
}
}
new A().foo();
🙁 Actual behavior
Running the output throws super.a is not a function
🙂 Expected behavior
The output code should log "super.a"
Additional information about the issue
No response
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Đánh giá
Issue này chưa được đánh giá.