plantain-00/type-coverage

--report-semantic-error reports wrong error for code with interface in namespace

Closed this issue · 0 comments

Code

namespace A {
  export interface C {}
}

interface B extends A.C {
}

Cannot extend an interface 'A.C'. Did you mean 'implements'?

The typescript API program.getSemanticDiagnostics(sourceFile) reports that. microsoft/TypeScript#55729