-
Notifications
You must be signed in to change notification settings - Fork 830
Closed
Labels
Milestone
Description
I'm getting a compiler error message of:
error FS: internal error: Exception of type 'Microsoft.FSharp.Compiler.ConstraintSolver+LocallyAbortOperationThatFailsToResolveOverload' was thrown.
Reproduce steps
Expected behavior
Compiler should report type constraint mismatch for the function test.
Actual behavior
Compiler exception when solving the constraint.
Known workarounds
Deleting either of the * overloads for Polynomial causes the compiler to display a sensible error. Replacing the float literals of 1.0 & 0.5 with decimal literals 1.0m & 0.5m fixes the compiler errors.