microsoft / microsoft/TypeScript
Wrong `super` in class element decorator
Aperta
@rbuckton ci sta già lavorando.
Dal 21/2/2024.
Needs Investigation
- Lingua principale
- Go
- Stelle
- 111k
- Fork
- 14.4k
- Merge medio
- 1g 19h
- PR unite (30g)
- 117
Descrizione
🔎 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
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Valutazione
Questa issue non è ancora stata valutata.