Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

member types, e.g. Tree<T>.Node #8106

Closed
d180cf opened this issue Apr 15, 2016 · 2 comments
Closed

member types, e.g. Tree<T>.Node #8106

d180cf opened this issue Apr 15, 2016 · 2 comments
Labels
Duplicate An existing issue was already created

Comments

@d180cf
Copy link

d180cf commented Apr 15, 2016

Sometimes it's useful to declare new types within a class/interface, especially when it's a generic:

class Tree<T> {
  private type Node = { data: T, subnodes: Node[] };
  public root: Node = { data: null, subnodes: [] };
  ...
}

Such member types could be referred to as Tree<T>.Node.

@Arnavion
Copy link
Contributor

Previous discussion at #7061

@mhegazy mhegazy added the Duplicate An existing issue was already created label Apr 18, 2016
@mhegazy mhegazy closed this as completed Apr 18, 2016
@mhegazy
Copy link
Contributor

mhegazy commented Apr 18, 2016

Duplicate of #7061 as noted by @Arnavion

@microsoft microsoft locked and limited conversation to collaborators Jun 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Duplicate An existing issue was already created
Projects
None yet
Development

No branches or pull requests

3 participants