Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Enhancement: Forbid abstract accessor to have implementation #11654

@fisker

Description

@fisker

Before You File a Proposal Please Confirm You Have Done The Following...

Relevant Package

ast-spec

My proposal is suitable for this project

  • I believe my proposal would be useful to the broader TypeScript community (meaning it is not a niche proposal).

Description

abstract class Foo {
  abstract get accessor() {
    return 1;
  }
}

Should not be allowed

1318: An abstract accessor cannot have an implementation. 2:16 - 2:24

Additional Info

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    accepting prsGo ahead, send a pull request that resolves this issueenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions