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

Enable experimental feature with command line argument has no effect. #10606

slangmgh opened this issue Feb 8, 2019 · 1 comment


None yet
2 participants
Copy link

commented Feb 8, 2019

The tried the experimental feature with nim compiler command argument, but it has no effect.

#{.experimental: "codeReordering".}

proc p1() =
   echo "hello"

proc p2() =
   echo "hello 2"


The code is fine with the pragma enabled. But when I comment out the pragma line, and compile with the following command:

> nim.exe c --experimental:codeReordering t9
t9.nim(5, 4) Error: undeclared identifier: 'p2'

It cannot compile.


This comment has been minimized.

Copy link

commented Feb 9, 2019

Yeah, this is currently unsupported. Can't be hard to fix though.

@Araq Araq closed this in 3c909ae Feb 9, 2019

Araq added a commit that referenced this issue Feb 18, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.