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_lowered doesn't work on broadcast functions #31856

Closed
bjarthur opened this issue Apr 27, 2019 · 1 comment
Closed

@code_lowered doesn't work on broadcast functions #31856

bjarthur opened this issue Apr 27, 2019 · 1 comment

Comments

@bjarthur
Copy link
Contributor

julia> foo(x)=7
foo (generic function with 1 method)

julia> foo(1)
7

julia> @code_lowered foo(1)
CodeInfo(
1 ─     return 7
)

julia> foo.([1,2,3])
3-element Array{Int64,1}:
 7
 7
 7

julia> @code_lowered foo.([1,2,3])
0-element Array{Core.CodeInfo,1}
@KristofferC
Copy link
Sponsor Member

Dup of #28615

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

No branches or pull requests

2 participants