Skip to content

error FS0193: ...ConstraintSolver+LocallyAbortOperationThatFailsToResolveOverload #3343

@ptrelford

Description

@ptrelford

While trying to build a project on VS2017 the compiler gives the following error message:

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

Repro steps

  1. Create an F# Console project
  2. Add the latest preview release of Freya (4.0.0-alpha-170404) from Nuget
  3. Add the following code to Program.fs
open Freya.Core
open Freya.Machines.Http

let throwError = 
    freyaMachine { 
        handleOk ( fun (acceptable:Acceptable) -> 
            freya { 
                return Represent.text "Something"
            })
    }

Solution: MyFreyaCompilerError.zip

  1. Attempt to build the project.

Expected behavior

The code should compile as it did in VS2015.

Actual behavior

The code gives an internal compiler error.

Known workarounds

Continue to use VS2015 instead of VS2017.

Related information

  • Windows 10 Pro
  • .NET Runtime 4.6.1
  • Microsoft Visual Studio Community 2017 (Version 15.1 (26403.7) Release)
  • Visual F# 4.1 00369-60000-00001-AA410

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugImpact-High(Internal MS Team use only) Describes an issue with extreme impact on existing code.Ready

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions