diff --git a/src/compiler/emitter.ts b/src/compiler/emitter.ts index d59362fd0e9..7d3537b4866 100644 --- a/src/compiler/emitter.ts +++ b/src/compiler/emitter.ts @@ -3258,7 +3258,7 @@ module ts { emitFile(jsFilePath, targetSourceFile); } else if (!isDeclarationFile(targetSourceFile) && compilerOptions.out) { - // Otherwise, if --out is specified and targetSourceFile shouldn't be emitted to own file, + // Otherwise, if --out is specified and targetSourceFile is not a declaration file, // Emit all, non-external-module file, into one single output file emitFile(compilerOptions.out); } diff --git a/tests/cases/fourslash/getEmitOutputWithDeclarationFile3.ts b/tests/cases/fourslash/getEmitOutputWithDeclarationFile3.ts index eeaa7fdeb25..1fce5434c1f 100644 --- a/tests/cases/fourslash/getEmitOutputWithDeclarationFile3.ts +++ b/tests/cases/fourslash/getEmitOutputWithDeclarationFile3.ts @@ -4,7 +4,6 @@ // @out: declSingle.js // @Filename: decl.d.ts -// @emitThisFile: true //// interface I { a: string; } // @Filename: inputFile2.ts @@ -17,5 +16,8 @@ // @Filename: inputFile4.ts //// var x1:number = 1000; +// @Filename: inputFile5.js +//// var x2 = 1000; + debugger; verify.baselineGetEmitOutput(); \ No newline at end of file