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

Ensure constructors of exported classes #1154

Merged
merged 2 commits into from
Mar 10, 2020
Merged

Ensure constructors of exported classes #1154

merged 2 commits into from
Mar 10, 2020

Conversation

dcodeIO
Copy link
Member

@dcodeIO dcodeIO commented Mar 10, 2020

This PR forces generation of constructors where necessary if a class has been explicitly exported. Also drive-by fixes missing related diagnostics that would otherwise not become triggered due to tree-shaking. While a relatively conservative fix, it's still good to have for the time being. See the linked issue for potential improvement ideas.

fixes #1150

@saulecabrera saulecabrera mentioned this pull request Mar 10, 2020
6 tasks
@dcodeIO dcodeIO merged commit ca6e319 into master Mar 10, 2020
@dcodeIO dcodeIO deleted the issue-1150 branch March 15, 2020 13:35
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.

Missing type check on field initializer when exporting a class without constrtuctor
1 participant