Skip to content

"error FS0192: internal error: duplicate entry in type index table" with simple code #19156

Description

@mlaily

Compiling the following snippet in a dotnet interactive session (either in Visual Studio Code or with the command line dotnet fsi) fails with an error similar to error FS0192: internal error: duplicate entry 'f@6' in type index table (with an entry name that is not constant):

open System

let f (start: DateTime) (stop: DateTime) (input: (DateTime * 'a) list) =
    [
        for i in start.Ticks .. stop.Ticks ->
            input |> List.where (fun (k, v) -> true)
    ]

I wasn't able to isolate the problem further.

This is also failing in a Polyglot Notebook with error input.fsx (1,1)-(1,1) interactive error internal error: Duplicate type name within an assembly....

Known workarounds

I couldn't find any.

Related information

Provide any related information (optional):

I'm running Windows 11, and I just updated my .NET SDK version just in case:

> dotnet --info
.NET SDK:
 Version:           10.0.101
 Commit:            fad253f51b
 Workload version:  10.0.100-manifests.9f71effe
 MSBuild version:   18.0.6+fad253f51

[...]

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions