Skip to content

Attempt to make type inference checks more robust #110

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

c42f
Copy link
Collaborator

@c42f c42f commented May 15, 2016

With julia-0.4.5, the recently added type inference tests fail due to a remaining Any which has not been optimized out. I started hacking around this and got a bit carried away. This change

  • Adds is_inferred(), which mirrors most of the functionality of code_warntype(), but without printing the Expr. This probably isn't quite watertight, but it seems to work for now.
  • Only checks the body of the test function, since the argument list has a bogus Any hanging around.

BTW, what's the plan for 0.5 support at the moment? I did a Pkg.test("FixedSizeArrays") against it the other day and the upstream julialang churn seemed to have broken all sorts of things, so I haven't tried this patch against 0.5 yet. Am currently doing a new build to get up to date. My bad, I think this was just me getting confused about which FixedSizeArrays version I'm running.

Add is_inferred(), which mirrors most of the functionality of
code_warntype(), but without printing the Expr.  This probably isn't
quite watertight, but it seems to work for now.

Only check the body of the test function, since the argument list has a
bogus Any hanging around.
@coveralls
Copy link

coveralls commented May 15, 2016

Coverage Status

Coverage decreased (-2.6%) to 90.476% when pulling 227ac12 on c42f:fix-inlining-test into a501d25 on SimonDanisch:master.

@c42f
Copy link
Collaborator Author

c42f commented May 15, 2016

Alas, as expected v0.5 has changed Expr enough that this is broken there. Needs more work.

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.

2 participants