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

Substitute type arguments in 'new' only if prototypes match #1660

Merged
merged 1 commit into from Feb 3, 2021

Conversation

dcodeIO
Copy link
Member

@dcodeIO dcodeIO commented Feb 3, 2021

The code responsible to enable arr: Array<i32> = new Array() didn't check that both prototypes match before attempting to substitute type arguments, ultimately hitting an assertion that ensures that there's no unexpected "type argument count mismatch".

fixes #1622

  • I've read the contributing guidelines

@dcodeIO dcodeIO merged commit 5981995 into master Feb 3, 2021
@dcodeIO dcodeIO deleted the issue-1622 branch June 1, 2021 15:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Assigning compatible concrete class to generic base class typed variable errors out during compile time.
1 participant