dukat icon indicating copy to clipboard operation
dukat copied to clipboard

Eponymous declarations in parentClauses cause StackOverflowError

Open Schahen opened this issue 5 years ago • 0 comments

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.

Schahen avatar Mar 31 '20 14:03 Schahen