Skip to content

Some comments are removed #8800

@lukerossie

Description

@lukerossie

TypeScript Version:

1.7.5

Code

export function lex(source: string): Array<string>
{//validation and tokenization
}
// A self-contained demonstration of the problem follows...

The comment after the beginning curly brace is discarded.

Expected behavior:

After being compiled the comment is not discarded.

Actual behavior:
The comment is discarded.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Not a DefectThis behavior is one of several equally-correct options

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions