Open
Description
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