dotnet / dotnet/fsharp

Bad error recovery for attributes

Open
#4,130 0 comments 0 reactions 1 assignee Claimed by @edgarfgp View on GitHub
Area-Diagnostics Bug Impact-Medium
Dominant language
F#
Stars
4.3k
Forks
876
Avg merge
4d 11h
Merged PRs (30d)
131

Description

![attrib_error](https://user-images.githubusercontent.com/1278959/34081810-dee097de-e307-11e7-80a6-8e2475e1eb61.png)

#### Repro steps

1. Start typing an attribute on a module.

#### Expected behavior

Should give an error based on the attribute itself and not the code below.

#### Actual behavior

Errors happen on the code below due to bad error recovery.

#### Known workarounds

You can indent the module, but not really a workaround.

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.