Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ext/typeexpr: Refinements when applying defaults with unknown values
If either the given value is refined non-null or if the default value is refined non-null then the final attribute value after defaults processing is also guaranteed non-null even if we don't yet know exactly what the value will be. This rule is pretty marginal on its own, but refining some types of value as non-null creates opportunities to deduce further information when the value is used under other operations later, such as collapsing an unknown but definitely not null list of a known length into a known list of that length containing unknown values.
- Loading branch information