-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
optbuilder: don't use Unknown for nested blocks with no RETURN
Previously, we would unconditionally override the wildcard return type to the type we found while visiting the block, but if the block doesn't have any RETURN statements, then we'd use Unknown type (that we initialize the visitor to). This could lead to internal errors and is now fixed by returning an unsupported error in such case. Additionally, we now return an unsupported error whenever we resolved the return type for a block to be a wildcard. Release note: None
- Loading branch information
1 parent
c5ff087
commit 8a435b9
Showing
2 changed files
with
48 additions
and
11 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