Commit c77f7ef
authored
Require type arguments for generic functions in checked scopes. (#589)
We previously added code to allow type arguments to be omitted at some calls to generic function calls. When type arguments are omitted, void is used as the value for each type argument instead. We allowed type arguments to be omitted at calls in unchecked scopes and checked bounds_only scopes. I think the difference in behavior between different forms of checked scopes will likely be confusing, so require type arguments for all checked scopes.
Testing:
- Added tests to the Checked C repo that check this behavior.
- Passed automated testing for Linux.
- Passed local testing for Windows.1 parent 18a77c6 commit c77f7ef
1 file changed
+4
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5486 | 5486 | | |
5487 | 5487 | | |
5488 | 5488 | | |
5489 | | - | |
| 5489 | + | |
| 5490 | + | |
5490 | 5491 | | |
5491 | 5492 | | |
5492 | 5493 | | |
5493 | 5494 | | |
5494 | | - | |
5495 | | - | |
| 5495 | + | |
5496 | 5496 | | |
5497 | 5497 | | |
5498 | 5498 | | |
| |||
5507 | 5507 | | |
5508 | 5508 | | |
5509 | 5509 | | |
5510 | | - | |
| 5510 | + | |
5511 | 5511 | | |
5512 | 5512 | | |
5513 | 5513 | | |
| |||
0 commit comments