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

Argument and type name equivalent #279

Closed
vchuravy opened this issue Feb 17, 2021 · 1 comment · Fixed by #278
Closed

Argument and type name equivalent #279

vchuravy opened this issue Feb 17, 2021 · 1 comment · Fixed by #278

Comments

@vchuravy
Copy link
Collaborator

vchuravy commented Feb 17, 2021

void flux_stat_watcher_get_rstat (flux_watcher_t *w,
                                  struct stat *stat, struct stat *prev)

Produces:

function flux_stat_watcher_get_rstat(w, stat, prev)
    ccall((:flux_stat_watcher_get_rstat, libflux_core), Cvoid, (Ptr{flux_watcher_t}, Ptr{stat}, Ptr{stat}), w, stat, prev)
end

Which fails with, because the type name stat is shadowed by the local variable name stat

x-ref: flux-framework/FluxRM.jl#6

@Gnimuc
Copy link
Member

Gnimuc commented Feb 18, 2021

Thanks for reporting this! I'm currently reworking the whole generator in #278 and do need test cases like this one.

Gnimuc added a commit that referenced this issue Feb 20, 2021
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