Skip to content

Not currectly parse superClass starts with {} #62991

@fisker

Description

@fisker

🔎 Search Terms

"superClass"

🕗 Version & Regression Information

  • This changed between versions ______ and _______
  • This changed in commit or PR _______
  • This is the behavior in every version I tried, and I reviewed the FAQ for entries about _________
  • I was unable to test this on prior versions because _______

⏯ Playground Link

No response

💻 Code

class A extends {}.Foo {}
class A extends {}! {}

🙁 Actual behavior

They are not correctly parsed as super class.

🙂 Expected behavior

They should both parse as superClass.

Additional information about the issue

The following are correctly parsed.

class A extends {} {}
class A extends {Foo}.Foo {}

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