dukat
dukat copied to clipboard
Eponymous declarations in parentClauses cause StackOverflowError
Following code:
// _core/index.d.ts
export interface NextFunction {}
// -------
import * as core from "_core";
interface NextFunction extends core.NextFunction { }
Will fail to even be translated, we'll end up with StackOverflowError since we'll try to resolve inheritance by fqName on a model phase and both. entities happen to have the same fqName which is really a shame.
This pattern of inheritance is something that happen in real-life scenarios quite a lot, most notorious example would be express.