Skip to content

ExclamationToken is not stripped from PropertyDeclaration emit with useDefineForClassFields #35097

Closed
@ajafff

Description

@ajafff

TypeScript Version: 3.7.2

Search Terms:

Code

// @target: esnext
// @useDefineForClassFields: true
class C {
    p!;
}

Expected behavior:

"use strict";
class C {
    p;
}

Actual behavior:

"use strict";
class C {
    p!;
}

Playground Link: http://www.typescriptlang.org/play/?useDefineForClassFields=true&target=99#code/MYGwhgzhAEDC0G8BQ1XQA4EIDcSC+QA

Related Issues: #35095

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions