Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow a function to declare a Unit return type when it uses a generic…
… function initializer (#4371) * Allow a function to declare a Unit return type when it uses a generic function initializer * Added check for when redundant function return typing and generic typing are provided; Slight optimization in OptionalUnit for determining whether a function has an explicit return type * Added test to expand code coverage * Optimizing check for whether a function contains an initializer * Adding more tests to improve code coverage * Adding another test to improve code coverage * Removing test due to it failing compilation check
- Loading branch information
1 parent
92433ea
commit b013465
Showing
2 changed files
with
96 additions
and
12 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