Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

for var = expr1 to expr2 do expr3 done #6586

Closed
kevmal opened this issue Apr 19, 2019 · 4 comments
Closed

for var = expr1 to expr2 do expr3 done #6586

kevmal opened this issue Apr 19, 2019 · 4 comments
Labels
Milestone

Comments

@kevmal
Copy link
Contributor

kevmal commented Apr 19, 2019

Seems identifiers between var and = simply get ignored. For example the following compiles/runs:

for i bleh bleh this runs fine = 1 to 20 do 
    printfn "%d" i
@cartermp
Copy link
Contributor

Even more fun:

let foo x = x

for i foo 12 = 1 to 20 do 
    printfn "%d" i

Prints 1-12 in FSI on a new line, just as your repro.

Definitely feels like a bug 😄

@cartermp cartermp modified the milestones: 16.1, 16.2 Apr 23, 2019
@dsyme dsyme mentioned this issue Apr 23, 2019
@dsyme
Copy link
Contributor

dsyme commented Apr 23, 2019

How odd. Anyway fix is at #6621

@cartermp cartermp modified the milestones: 16.2, 16.1 Apr 24, 2019
@cartermp cartermp modified the milestones: 16.1, 16.2 May 29, 2019
@cartermp cartermp reopened this May 29, 2019
@cartermp
Copy link
Contributor

Re-opening as this is not resolved in VS

@cartermp
Copy link
Contributor

Confirmed as fixed in 16.2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants