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 error in anonymous function #41433

Open
A1-Mathematik opened this issue Jul 1, 2021 · 0 comments
Open

parse error in anonymous function #41433

A1-Mathematik opened this issue Jul 1, 2021 · 0 comments
Labels
parser Language parsing and surface syntax

Comments

@A1-Mathematik
Copy link
Contributor

This seems inconsistent (from discourse ):

julia> function(a::Int)::Bool end
ERROR: syntax: ambiguous signature in function definition. Try adding a comma if this is a 1-argument anonymous function.
Stacktrace:
 [1] top-level scope
   @ none:1

julia> function(a::Int,)::Bool end
ERROR: syntax: ambiguous signature in function definition. Try adding a comma if this is a 1-argument anonymous function.
Stacktrace:
 [1] top-level scope
   @ none:1

julia> VERSION
v"1.8.0-DEV.94"
@JeffBezanson JeffBezanson added the parser Language parsing and surface syntax label Jul 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
parser Language parsing and surface syntax
Projects
None yet
Development

No branches or pull requests

2 participants