-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
inference: make
Core.Compiler.return_type
respect max_methods
set…
…ting Previously we didn't limit the number of matching methods for `Core.Compiler.return_type`, which could lead to a potential latency problem. This commit makes `Core.Compiler.return_type` and the corresponding tfunc `return_type_tfunc` respect `max_methods` setting as like the ordinary inference. One caveat here is that the current `Core.Compiler.return_type` interface unfortunately doesn't allow it to see the caller module context, so it can't respect module-wide `max_methods` setting (I guess the change to the interface should be made as of version 2.0), that I think can lead to a potential confusion.
- Loading branch information
Showing
3 changed files
with
38 additions
and
15 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
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