microsoft / microsoft/TypeScript
Wrong `super` in class element decorator
Offen
@rbuckton arbeitet bereits daran.
Seit 21.2.2024.
Needs Investigation
- Vorherrschende Sprache
- Go
- Sterne
- 111k
- Forks
- 14.4k
- Ø Merge
- 1 T. 19 Std.
- Gemergte PRs (30 T.)
- 117
Beschreibung
🔎 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
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Bewertung
Dieses Issue wurde noch nicht bewertet.