Generic defaults by RyanCavanaugh · Pull Request #6354 · microsoft/TypeScript

Skip to content

Navigation Menu

Sign in

Appearance settings

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Conversation

@RyanCavanaugh

Copy link

Member

A mostly-complete implementation for #2175

Not done yet:

  • Check that all defaults, when present, are identical
  • Check that defaults are assignable to constraints

/cc @ahejlsberg

Copy link

Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not an error.

@mhegazy

Copy link

Contributor

mhegazy commented

Sep 13, 2016

@RyanCavanaugh can you please refresh this PR?

let a4: HasDefault2;

/** Required may not follow optional */
interface Wrong<T, U = number> { }

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you mean interface Wrong<T = number, U> {}?

@RyanCavanaugh

Copy link

Member Author

Superceded by #13487

@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.

Reviewers

1 more reviewer

@dead-claudia dead-claudia dead-claudia left review comments

Reviewers whose approvals may not affect merge requirements

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

4 participants

@RyanCavanaugh @mhegazy @dead-claudia @msftclas