-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
fix #37393: interpolation in for outer #37402
Conversation
aaae557
to
36473b1
Compare
The simplification is nice but a bit too good to be true --- we allowed |
Oh, you are right! I misunderstood what |
I also can't quite figure out what this line is for: Line 1668 in 36473b1
Is this even needed anymore? |
I think the
|
It almost works. Unfortunately, the current [i for i
in 1:3] as valid syntax, which I guess was just an oversight, but since it's actually used in julia/base/compiler/ssair/inlining.jl Line 1326 in f902584
|
36473b1
to
0103a2a
Compare
Ok, this should now be ready to review. It keeps the (somewhat questionable) current behavior regarding newlines, while still fixing #37393. |
@JeffBezanson Would you mind taking another look at this? |
0103a2a
to
b0ed001
Compare
I am going to rebase once #37247 is merged |
b0ed001
to
d9d1c64
Compare
This also simplifies the logic a bit. This does now throw an error during lowering for
for outer +i = 1:3; end
, which was technically valid before, but I don't think that should be a problem?fixes #37393