Skip to content

QuestionToken is not removed from method declaration emit #34953

Closed
@ajafff

Description

@ajafff

TypeScript Version: 3.7.2

Search Terms:

Code

// @target: es6
class Base {
    method?() { }
}

Expected behavior:

"use strict";
class Base {
    method() { }
}

Actual behavior:

"use strict";
class Base {
    method?() { }
}

Playground Link: http://www.typescriptlang.org/play/?target=2&ssl=3&ssc=2&pln=1&pc=1#code/MYGwhgzhAEBCkFNoG8BQ0PQLYIC4AsB7AEwH4AKAShWgF9V6g

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptFix AvailableA PR has been opened for this issue

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions