typeassert Expr constructor return value#592
Draft
nsajko wants to merge 1 commit intoJuliaLang:mainfrom
Draft
Conversation
Type stability fix: makes the return value of the `Expr` constructor method infer as `Expr`. Not sure if this could be fixed at a deeper level of the call stack instead. Works around issue JuliaLang/julia#42372 in the case of this method.
nsajko
added a commit
to nsajko/JuliaSyntax.jl
that referenced
this pull request
Sep 3, 2025
Manual backport of PR JuliaLang#592 to JuliaSyntax v1.
Member
|
Heya, we just moved JuliaSyntax into Base in JuliaLang/julia#59870 - if you want to re-propose this PR over there, I've created a branch https://github.com/JuliaLang/JuliaSyntax.jl/tree/pr-for-Base/592 to make this easier. To make use of the branch, you can use the following steps:
For example: # git clone git@github.com:JuliaLang/julia julia_dir
# cd julia_dir
git remote add JuliaSyntax git@github.com:JuliaLang/JuliaSyntax.jl
git fetch JuliaSyntax
git checkout pr-for-Base/592
git rebase origin/masterSorry this wasn't dealt with prior to the big move! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Type stability fix: makes the return value of the
Exprconstructor method infer asExpr.Not sure if this could be fixed at a deeper level of the call stack instead.
Works around issue JuliaLang/julia#42372 in the case of this method.