Skip to content

typeof members #1559

Closed
Closed
@NN---

Description

@NN---

Why TypeScript doesn't allow this (tried in http://www.typescriptlang.org/Playground/ )

class A {
  a : number;
  b : typeof a; // Cannot find name 'a'
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    By DesignDeprecated - use "Working as Intended" or "Design Limitation" instead

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions