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

parse unicode forall and exists as identifiers #42314

Merged
13 changes: 12 additions & 1 deletion test/syntax.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2970,4 +2970,15 @@ end
# issue #19012
@test Meta.parse("\U2200", raise=false) == Symbol("∀")
@test Meta.parse("\U2203", raise=false) == Symbol("∃")
@test Meta.parse("a\U2203", raise=false) == Symbol("a∃")
@test Meta.parse("a\U2203", raise=false) == Symbol("a∃")

# issue 42220
macro m42220()
return quote
function foo(::Type{T}=Float64) where {T}
return Vector{T}(undef, 10)
end
end
end
@test @m42220()() isa Vector{Float64}
@test @m42220()(Bool) isa Vector{Bool}