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 default value having a wrong type #47

Closed
tonyhffong opened this issue Nov 3, 2014 · 3 comments
Closed

Warn default value having a wrong type #47

tonyhffong opened this issue Nov 3, 2014 · 3 comments

Comments

@tonyhffong
Copy link
Owner

Relevant issue: JuliaLang/julia#7357

@ivarne
Copy link
Contributor

ivarne commented Nov 3, 2014

See also a::Int=error(...) from https://groups.google.com/forum/m/#!topic/julia-users/xslxrihfO30

Not really sure how pretty it looks, but be careful to not evaluate the expression and assume it is constant.

@tonyhffong
Copy link
Owner Author

Good point.

@tonyhffong
Copy link
Owner Author

I didn't realize that Lint already checks that. Cool. Here's the test committed that explicitly shows this:
7437b66

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

No branches or pull requests

2 participants