Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improves function call template type inference by decomposing argumen…
…t union types. Decomposition allows better matching when part of the arg type union, but not the entire union, matches the parameter type. Example, passing `Array<string>|Set<string>` to a function expecting `Iterable<T>` now infers `T` to be `string`. This change also includes additional tests for function call template type inference to confirm existing behaviour, not directly related to this change. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=229455278
- Loading branch information
1 parent
f66ff18
commit 8632f4e
Showing
2 changed files
with
157 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters