Commit 4f0c320
Warn when 'unit' is passed to an 'obj' argument (#18330)
* Warn when 'unit' is passed to an 'obj' argument
* fantomas of the opera
* notes + fix build of tests
* Apply suggestions from code review
Co-authored-by: Adam Boniecki <[email protected]>
* Address test warnings
* Fix tests
* revert to stable warning when arg is other than obj
---------
Co-authored-by: Adam Boniecki <[email protected]>
Co-authored-by: Petr <[email protected]>1 parent 3397985 commit 4f0c320
File tree
27 files changed
+188
-6
lines changed- docs/release-notes
- .FSharp.Compiler.Service
- .Language
- src/Compiler
- Checking
- Facilities
- xlf
- tests
- FSharp.Compiler.ComponentTests/Conformance/BasicGrammarElements/MemberDefinitions/OptionalDefaultParamArgs
- FSharp.Core.UnitTests/FSharp.Core
- Microsoft.FSharp.Control
- Microsoft.FSharp.Reflection
27 files changed
+188
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3177 | 3177 | | |
3178 | 3178 | | |
3179 | 3179 | | |
| 3180 | + | |
3180 | 3181 | | |
3181 | 3182 | | |
3182 | 3183 | | |
| |||
3188 | 3189 | | |
3189 | 3190 | | |
3190 | 3191 | | |
3191 | | - | |
3192 | | - | |
| 3192 | + | |
| 3193 | + | |
| 3194 | + | |
| 3195 | + | |
3193 | 3196 | | |
3194 | 3197 | | |
3195 | 3198 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1683 | 1683 | | |
1684 | 1684 | | |
1685 | 1685 | | |
| 1686 | + | |
1686 | 1687 | | |
1687 | 1688 | | |
1688 | 1689 | | |
| |||
1794 | 1795 | | |
1795 | 1796 | | |
1796 | 1797 | | |
| 1798 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
| 101 | + | |
101 | 102 | | |
102 | 103 | | |
103 | 104 | | |
| |||
227 | 228 | | |
228 | 229 | | |
229 | 230 | | |
| 231 | + | |
230 | 232 | | |
231 | 233 | | |
232 | 234 | | |
| |||
388 | 390 | | |
389 | 391 | | |
390 | 392 | | |
| 393 | + | |
391 | 394 | | |
392 | 395 | | |
393 | 396 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
| 92 | + | |
92 | 93 | | |
93 | 94 | | |
94 | 95 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments