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

added type assert to toq #4148

Merged
merged 1 commit into from Aug 26, 2013
Merged

Conversation

astrieanna
Copy link
Contributor

Previously, according to code_typed(toq,()), toq and toc type-inferred to a return type of Any.
They really always return a Float64. Adding this type-assert makes the inferred return type Float64.

@StefanKarpinski
Copy link
Sponsor Member

I assume this is some fruit of the type checking work?

StefanKarpinski added a commit that referenced this pull request Aug 26, 2013
@StefanKarpinski StefanKarpinski merged commit 7dc17ee into JuliaLang:master Aug 26, 2013
@StefanKarpinski
Copy link
Sponsor Member

This has a type inference failure on gcc, but is fine in clang. This change clearly isn't problematic in any case.

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.

None yet

2 participants