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

test failed when update JuliaSyntax.jl for julia #532

Open
inkydragon opened this issue Jan 30, 2025 · 0 comments
Open

test failed when update JuliaSyntax.jl for julia #532

inkydragon opened this issue Jan 30, 2025 · 0 comments

Comments

@inkydragon
Copy link
Member

Not sure if those are bugs:

# issue https://github.com/JuliaLang/julia/issues/21168
@test_broken Meta.lower(Main, :(a.[1])) == Expr(:error, "invalid syntax \"a.[1]\"")
@test_broken Meta.lower(Main, :(a.{1})) == Expr(:error, "invalid syntax \"a.{1}\"")

# issue https://github.com/JuliaLang/julia/issues/26739
let exc = try Core.eval(@__MODULE__, :(sin.[1])) catch exc ; exc end
    @test_broken exc isa ErrorException
    @test_broken startswith(exc.msg, "syntax: invalid syntax \"sin.[1]\"")
end

And this one,

macro n37134()
-    :($(esc(Expr(:tuple, Expr(:..., :x))))->$(esc(:x)))
+    quote
+        ((x...,)) -> (x)
+    end |> esc
end
@test @n37134()(2,1) === (2,1)

xref: JuliaLang/julia#57188

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

1 participant