Skip to content

Generic inherited default constructor #8713

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

Merged
merged 4 commits into from
May 20, 2016

Conversation

sandersn
Copy link
Member

@sandersn sandersn commented May 20, 2016

Fixes #8166 by deleting an erroneous code path in getErasedSignature. @ahejlsberg @JsonFreeman


class A<U> { a: U; }
class B<V> extends A<V> { b: V; }
var c:Constructor<B<boolean>> = B; // error here
Copy link
Member

Choose a reason for hiding this comment

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

Change comment to "shouldn't error here".

@ahejlsberg
Copy link
Member

👍 with the suggested changes.

@sandersn sandersn merged commit 61154b6 into master May 20, 2016
@sandersn sandersn deleted the generic-inherited-default-constructor branch May 20, 2016 17:41
@JsonFreeman
Copy link
Contributor

Nice!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants