Skip to content

Comments are lost between the lines #12985

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
vitaly-t opened this issue Dec 16, 2016 · 0 comments
Closed

Comments are lost between the lines #12985

vitaly-t opened this issue Dec 16, 2016 · 0 comments
Assignees
Labels
Bug A bug in TypeScript Fixed A PR has been merged for this issue

Comments

@vitaly-t
Copy link

vitaly-t commented Dec 16, 2016

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.

@DanielRosenwasser DanielRosenwasser added the Bug A bug in TypeScript label Dec 27, 2016
@mhegazy mhegazy added this to the TypeScript 2.4 milestone Apr 19, 2017
@yuit yuit added the Fixed A PR has been merged for this issue label Jun 16, 2017
@DanielRosenwasser DanielRosenwasser assigned weswigham and unassigned yuit Aug 3, 2017
@microsoft microsoft locked and limited conversation to collaborators Jun 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug A bug in TypeScript Fixed A PR has been merged for this issue
Projects
None yet
Development

No branches or pull requests

5 participants