dotnet / dotnet/fsharp

Existing signature files become unusable

Open
#14,707 0 comments 1 reaction 0 assignees View on GitHub
Area-Compiler-CodeGen Bug help wanted Impact-Low
Dominant language
F#
Stars
4.3k
Forks
876
Avg merge
4d 22h
Merged PRs (30d)
144

Description

When a project has a signature file like:

```fsharp
val foo01 : int -> string -> _
val bar01 : int -> int -> _
```

They will be override by `--allsigs` to

```fsharp
val foo01: int -> string -> '?17893
val bar01: int -> int -> '?17894
```

**Repro steps**

Provide the steps required to reproduce the problem:

1. `Unzip`
2. `dotnet build`
3. `dotnet build --no-incremental`

[InvalidSignatureGeneration.zip](https://github.com/dotnet/fsharp/files/10665305/InvalidSignatureGeneration.zip)

**Expected behavior**

The project should still compile after the rebuild.

**Actual behavior**

Project no longer builds.

**Related information**

Detected via https://github.com/dotnet/fsharp/pull/14703

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.