Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use inferred type for empty comprehensions if it is a leaf type
this implements the "Steve Johnson compromise": - non-empty comprehensions don't depend on inference at all - in the empty case, we use either Union{} or the inferred type - therefore there is no regression in type precision in cases where we can infer a leaf type
- Loading branch information