Skip to content

Conversation

@c42f
Copy link
Owner

@c42f c42f commented Aug 22, 2025

Fixes #46

(Got broken with the op argument added in #10 but I hadn't written a test case for this code path 😅)

`return` in value position is allowed in Julia so that ASTs compose more
easily.
@c42f c42f requested a review from mlechu August 22, 2025 07:41
Copy link
Collaborator

@mlechu mlechu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, thank you for the fix!

@mlechu mlechu merged commit 0d87b74 into main Aug 22, 2025
2 checks passed
@mlechu mlechu deleted the caf/fix-assign-return branch August 22, 2025 16:38
aviatesk pushed a commit to mlechu/JuliaLowering.jl that referenced this pull request Aug 22, 2025
`return` in value position is allowed in Julia so that ASTs compose more
easily.
@aviatesk
Copy link
Collaborator

Happy this issue got fixed so quickly! We use patterns like @something xxx return nothing a lot in JETLS, so this will really help us with the type on hover experiment.

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.

return as an rvalue dies in linearization

4 participants