Skip to content

Copyrights for 2nd file onwards are not emitted on the new line if multiple files are emitted into single file #500

@sheetalkamat

Description

@sheetalkamat

Code:
a.ts:

/*--------------------------------------------------------------------------
Copyright 
---------------------------------------------------------------------------*/

var x = {
    a: 10,
    b: 20
};

b.ts:

/*--------------------------------------------------------------------------
Copyright 
---------------------------------------------------------------------------*/

///<reference path="a.ts"/>
var y = x;

Run tsc b.ts --out tsc b.ts --out b.js

Expected:

/*--------------------------------------------------------------------------
Copyright
---------------------------------------------------------------------------*/
var x = {
    a: 10,
    b: 20
};
/*--------------------------------------------------------------------------
Copyright
---------------------------------------------------------------------------*/
///<reference path="a.ts"/>
var y = x;

Result:

/*--------------------------------------------------------------------------
Copyright
---------------------------------------------------------------------------*/
var x = {
    a: 10,
    b: 20
};/*--------------------------------------------------------------------------
Copyright
---------------------------------------------------------------------------*/
///<reference path="a.ts"/>
var y = x;

Metadata

Metadata

Assignees

Labels

BugA bug in TypeScriptFixedA PR has been merged for this issue

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions