Commit b734bfb
Fix enum type preservation in additive arithmetic operations (#976)
* Initial plan
* Fix: enum + int and int + enum now return enum type (C# semantics); enum - int returns enum type
Agent-Logs-Url: https://github.com/zzzprojects/System.Linq.Dynamic.Core/sessions/0cb2e89e-56b5-4db3-8850-f5013136f847
Co-authored-by: StefH <249938+StefH@users.noreply.github.com>
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: StefH <249938+StefH@users.noreply.github.com>1 parent 4ff9105 commit b734bfb
File tree
2 files changed
+50
-4
lines changed- src/System.Linq.Dynamic.Core/Parser
- test/System.Linq.Dynamic.Core.Tests
2 files changed
+50
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
766 | 766 | | |
767 | 767 | | |
768 | 768 | | |
| 769 | + | |
| 770 | + | |
769 | 771 | | |
770 | 772 | | |
| 773 | + | |
| 774 | + | |
| 775 | + | |
| 776 | + | |
| 777 | + | |
| 778 | + | |
| 779 | + | |
| 780 | + | |
| 781 | + | |
771 | 782 | | |
772 | 783 | | |
773 | 784 | | |
774 | 785 | | |
775 | | - | |
776 | | - | |
| 786 | + | |
| 787 | + | |
| 788 | + | |
| 789 | + | |
| 790 | + | |
| 791 | + | |
| 792 | + | |
| 793 | + | |
| 794 | + | |
| 795 | + | |
| 796 | + | |
777 | 797 | | |
778 | 798 | | |
779 | 799 | | |
| |||
Lines changed: 28 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
224 | 224 | | |
225 | 225 | | |
226 | 226 | | |
227 | | - | |
228 | | - | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
229 | 255 | | |
230 | 256 | | |
231 | 257 | | |
| |||
0 commit comments