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

Detect deprecation on initialize methods and methods with named args #7724

Merged
merged 2 commits into from
May 2, 2019

Conversation

bcardiff
Copy link
Member

Annotations were not kept from the original method to the expanded overload for named args.
For generated .new methods the annotations of the matching #initialize should be kept.

The call from new to initialize should not generate a warning since it's an implementation detail. For this case, an explicit check following the convention used by the compiler is used.

Fixes #7714

@bcardiff bcardiff added kind:bug A bug in the code. Does not apply to documentation, specs, etc. topic:compiler labels Apr 28, 2019
@bcardiff bcardiff added this to the 0.29.0 milestone Apr 28, 2019
@bcardiff bcardiff force-pushed the fix/deprecated-named-args branch from e0fd5fd to 7730e99 Compare April 30, 2019 01:13
@asterite asterite merged commit 4e1e9cb into crystal-lang:master May 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind:bug A bug in the code. Does not apply to documentation, specs, etc. topic:compiler
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Deprecation warnings not detected on named arguments
3 participants