mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-11 10:00:13 -06:00
Merge pull request #2473 from Microsoft/getSemanticDiagnosticsDeclarations
Fix issue where getSemanticDiagnostics was returning undefined on a .d.ts file.
This commit is contained in:
commit
8e2b7d0568
@ -2389,7 +2389,7 @@ module ts {
|
||||
|
||||
// If '-d' is enabled, check for emitter error. One example of emitter error is export class implements non-export interface
|
||||
let declarationDiagnostics = program.getDeclarationDiagnostics(targetSourceFile);
|
||||
return semanticDiagnostics.concat(declarationDiagnostics);
|
||||
return concatenate(semanticDiagnostics, declarationDiagnostics);
|
||||
}
|
||||
|
||||
function getCompilerOptionsDiagnostics() {
|
||||
|
||||
@ -0,0 +1,9 @@
|
||||
/// <reference path="fourslash.ts" />
|
||||
|
||||
// @declaration: true
|
||||
// @Filename: File.d.ts
|
||||
//// declare var v: string;
|
||||
|
||||
verify.numberOfErrorsInCurrentFile(0);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user