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

Warn on unused generic exports #1305

Merged
merged 1 commit into from
May 28, 2020
Merged

Warn on unused generic exports #1305

merged 1 commit into from
May 28, 2020

Conversation

dcodeIO
Copy link
Member

@dcodeIO dcodeIO commented May 28, 2020

A revised implementation of #981 that doesn't skip compilation, since it might be intended by the user to export a specific concrete instance when being aware of the limitations. Warns if an exported generic function or class has no instances, since that's most likely unintended.

Fixes #570
Fixes #981

@dcodeIO dcodeIO requested a review from MaxGraey May 28, 2020 17:52
@dcodeIO dcodeIO merged commit 6adbbd9 into master May 28, 2020
@dcodeIO dcodeIO deleted the warn-export-generic branch June 11, 2020 17:17
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.

Explicitly restrict exporting generic functions for entry file
2 participants