Add a check that ensures that the Min/Max functions run in the highest precision of the 2 parameters. Originally only the type of the first parameter was checked. Fixes a bug that would cause Min(2,1.97) to return 2 because 1.97 was converted to an int during expression evaluation or Max(2,2.33) to return 2 instead of 2.33.
Also added a test in Fixtures.cs to test for both of the above cases going forward.
Add a check that ensures that the Min/Max functions run in the highest precision of the 2 parameters. Originally only the type of the first parameter was checked. Fixes a bug that would cause
Min(2,1.97)
to return 2 because 1.97 was converted to anint
during expression evaluation orMax(2,2.33)
to return 2 instead of 2.33.Also added a test in Fixtures.cs to test for both of the above cases going forward.