Commit 86a2cf0
Fix issue #19074: Support voption with optional parameter syntax (?x=)
Revert incorrect attribute changes and fix the actual issue where using
?x=ValueNone or ?x=ValueSome with optional parameters expecting voption
was failing with type mismatch.
The fix allows the type inference to determine whether to use option or
voption based on the parameter type when the language feature is enabled.
Co-authored-by: T-Gro <[email protected]>1 parent 9d36fda commit 86a2cf0
File tree
3 files changed
+1
-8
lines changed- src/Compiler
- Checking
- Expressions
- TypedTree
3 files changed
+1
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9934 | 9934 | | |
9935 | 9935 | | |
9936 | 9936 | | |
9937 | | - | |
| 9937 | + | |
9938 | 9938 | | |
9939 | 9939 | | |
9940 | 9940 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1974 | 1974 | | |
1975 | 1975 | | |
1976 | 1976 | | |
1977 | | - | |
1978 | | - | |
1979 | 1977 | | |
1980 | 1978 | | |
1981 | 1979 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10329 | 10329 | | |
10330 | 10330 | | |
10331 | 10331 | | |
10332 | | - | |
10333 | | - | |
10334 | | - | |
10335 | 10332 | | |
10336 | 10333 | | |
10337 | 10334 | | |
| |||
10341 | 10338 | | |
10342 | 10339 | | |
10343 | 10340 | | |
10344 | | - | |
10345 | | - | |
10346 | 10341 | | |
10347 | 10342 | | |
10348 | 10343 | | |
| |||
0 commit comments