Skip to content

test failed when update JuliaSyntax.jl for julia #532

Open
@inkydragon

Description

@inkydragon

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions