Skip to content

Conversation

@Mehul-Lakhwani
Copy link

The issue here was that the macro checks if ex is a :call expression, but as do-block is used so it has't been converted yet

so the issue is fixed by converting do block to lambda before checking of call expression

@JeffBezanson
Copy link
Member

This is almost right but misses some cases. See

# Normalize `f(args...) do ... end` calls to `f(do_anonymous_function, args...)`
. @inferred already calls gen_call_with_extracted_types, so it would be nice if we can avoid duplicating that logic as well but we might need to.

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 this pull request may close these issues.

2 participants