Skip to content

Comments are lost between the lines #12985

Closed
@vitaly-t

Description

@vitaly-t

Input:

var a = 'some'
    // comment
    + 'text';

var b = 'some'
    /* comment */
    + 'text';

Expected output:

var a = 'some'
    // comment
    + 'text';
var b = 'some'
    /* comment */
    + 'text';

Actual output:

var a = 'some'
    + 'text';
var b = 'some'
    + 'text';

TypeScript version: All.

NOTE: Flag removeComments has no effect in such cases.

Metadata

Metadata

Assignees

Labels

BugA bug in TypeScriptFixedA PR has been merged for this issue

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions