The only part that fixes the issue is the last line end of the file PreTypeResolve.Expressions.cs, the rest is an automated conversion If/then/else to a switch statement that helped debugging and makes the code easier to maintain.
By submitting this pull request, I confirm that my contribution is made under the terms of the MIT license.
Fixes #5331 Fixes #5365
The only part that fixes the issue is the last line end of the file PreTypeResolve.Expressions.cs, the rest is an automated conversion If/then/else to a switch statement that helped debugging and makes the code easier to maintain.
By submitting this pull request, I confirm that my contribution is made under the terms of the MIT license.