Skip to content

FS0193: ConstraintSolver error #5580

@CharlesTaylor7

Description

@CharlesTaylor7

I'm getting a compiler error message of:

error FS: internal error: Exception of type 'Microsoft.FSharp.Compiler.ConstraintSolver+LocallyAbortOperationThatFailsToResolveOverload' was thrown.

Reproduce steps

Minimal Example in Sharp Lab

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions