Microsoft/TypeScript
GitHub ã§èŠãFunction implementation name must be ... (2389) when abstract method is declared again later
Open
#61,783 opened on 2025幎5æ29æ¥
Domain: Error MessagesHelp WantedPossible Improvement
Repository metrics
- Stars
- Â (48,455 stars)
- PR merge metrics
-  (å¹³åããŒãž 6d 17h) (30d ã§ 9 merged PRs)
説æ
ð Search Terms
duplicate abstract function declaration, abstract method, missing implementation, abstract method overload
ð Version & Regression Information
- This is the behavior in every version I tried, and I reviewed the FAQ for entries about abstract class
⯠Playground Link
ð» Code
abstract class Foo {
abstract func1(): void;
func2(): string {
// ^? Function implementation name must be 'func1'.(2389)
return 'hi'
}
abstract func1(): void;
}
ð Actual behavior
TS error reported for func2, which is valid.
ð Expected behavior
TS error reported for func1, which has duplicated abstract declaration.
Additional information about the issue
No response