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

@code_typed and family don't lower begin and end in indexing operations #45428

Closed
jishnub opened this issue May 23, 2022 · 1 comment · Fixed by #45968
Closed

@code_typed and family don't lower begin and end in indexing operations #45428

jishnub opened this issue May 23, 2022 · 1 comment · Fixed by #45968

Comments

@jishnub
Copy link
Contributor

jishnub commented May 23, 2022

julia> a = rand(2);

julia> @code_typed a[begin:end]
ERROR: UndefVarError: begin not defined
Stacktrace:
 [1] top-level scope
   @ ~/packages/julias/julia-latest/share/julia/stdlib/v1.9/InteractiveUtils/src/macros.jl:222

julia> @code_typed a[1:end]
ERROR: UndefVarError: end not defined
Stacktrace:
 [1] top-level scope
   @ ~/packages/julias/julia-latest/share/julia/stdlib/v1.9/InteractiveUtils/src/macros.jl:222

Will be nice to have this working.

xref JuliaDebug/Cthulhu.jl#291

@fredrikekre
Copy link
Member

#37379

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

Successfully merging a pull request may close this issue.

2 participants