-
-
Notifications
You must be signed in to change notification settings - Fork 609
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix bug 17502 (again): Generate contracts after inferring return type.
Wait until after the return type has been inferred before generating the contracts for this function, and merging contracts from overrides. This was originally at the end of the first semantic pass, but required a fix-up to be done here for the '__result' variable type of __ensure() inside auto functions, but this didn't work if the out parameter was implicit.
- Loading branch information
Showing
1 changed file
with
114 additions
and
84 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