Cubic/Exponential compilation time for very large anonymous record
- Dominant language
- F#
- Stars
- 4.3k
- Forks
- 876
- Avg merge
- 4d 11h
- Merged PRs (30d)
- 131
Description
See current repro at end of issue
----------------
**Repro steps**
1. Open Program.fs in [LargeArrayRepro.zip](https://github.com/dotnet/fsharp/files/6602731/LargeArrayRepro.zip).
It contains a large array of constants.
2. Try typing `let vector =` at the beginning and you will get a Stack Overflow in Rider and Visual Studio (16.10)

This is probably because the array is treated as a pattern before you write ``=``
Stacktrace demonstrates multiple recursive calls leading to an overflow.

Contributor guide
Assessment
This issue has not been assessed yet.