Skip to content
This repository has been archived by the owner on Sep 28, 2022. It is now read-only.

Infinite loop when using variables with keyword name #477

Open
vvdleun opened this issue May 21, 2017 · 1 comment
Open

Infinite loop when using variables with keyword name #477

vvdleun opened this issue May 21, 2017 · 1 comment
Labels

Comments

@vvdleun
Copy link

vvdleun commented May 21, 2017

In a throw-away script, I was using "in" as an absolutely terribly chosen variable name for an InputStream. This seems to cause an infinite loop when compiling the script in at least both 3.2.0-M5 and M6.

Simplest example would be something like:

module crash

function main = |args| {
    let in = "oh noes"
}

I think this is true for all reserved keywords (I tried several others, like "for" and "return")

@jponge jponge added the bug label May 22, 2017
@jponge
Copy link
Contributor

jponge commented May 22, 2017

Thanks, it's likely a parser recovery issue.

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

No branches or pull requests

2 participants