Skip to content

Conversation

@JeffBezanson
Copy link
Member

The first commit is just a refactoring to store static parameters as lattice elements instead of their (hopefully constant) values.

The second commit improves type information for static parameters that come from ::Type{T}, where we didn't know that T must be a Type. This is very useful for functions like zeros that sometimes take a type argument. Motivated by wanting to get better type info from examining fewer methods.

This is more consistent with how other variables and arguments are
treated, and more general.
@JeffBezanson JeffBezanson merged commit 5aa2462 into master Feb 2, 2019
@JeffBezanson JeffBezanson deleted the jb/sptypes branch February 2, 2019 22:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

compiler:inference Type inference

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants