Skip to content

Do not remove PURE comment after typed declaration #32060

Closed
@LongTengDao

Description

@LongTengDao

TypeScript Version: 3.4.0-dev.201xxxxx

Search Terms:

Code

const a :Type = /*#__PURE__*/ function () {}();

Expected behavior:

const a = /*#__PURE__*/ function () {}();

Actual behavior:

const a = function () {}();

Playground Link:

Related Issues:

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScript

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions