Skip to content

Wrong let expression parsing #7741

@auduchinok

Description

@auduchinok

The contents of do in the following code should be parsed as a sequence of let expression and x, but it's parsed as let expression in sequence of the sum and x.

do
    let x = 1 in x + 1
    x

In addition to the unexpected tree form it also creates a wrong scope for x.

Screenshot 2019-10-17 at 14 35 50

AST viewer

Metadata

Metadata

Labels

Area-Compiler-Syntaxlexfilter, indentation and parsingBugImpact-Medium(Internal MS Team use only) Describes an issue with moderate impact on existing code.

Type

No fields configured for Bug.

Projects

Status

New

Relationships

None yet

Development

No branches or pull requests

Issue actions