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

Strange interpretation of typealias a (Int) #18002

Closed
eschnett opened this issue Aug 12, 2016 · 0 comments
Closed

Strange interpretation of typealias a (Int) #18002

eschnett opened this issue Aug 12, 2016 · 0 comments
Labels
parser Language parsing and surface syntax

Comments

@eschnett
Copy link
Contributor

I wanted to write the equivalent of typealias a (Int) (with parenthesis) for clarity. Julia complains that no spaces before the parenthesis is allows -- that shouldn't apply here.

Also, typealias a(Int) interprets (Int) as a one-element tuple. That shouldn't be either since it should define a to be a type, not a tuple.

@JeffBezanson JeffBezanson added the parser Language parsing and surface syntax label Aug 13, 2016
ihnorton added a commit to ihnorton/julia that referenced this issue Aug 27, 2016
Also removes hack for the old space-optional call syntax.
ihnorton added a commit to ihnorton/julia that referenced this issue Aug 28, 2016
Also removes hack for the old space-optional call syntax.
JeffBezanson added a commit that referenced this issue Oct 12, 2016
Fix #18002: parse `typealias` args space-sensitive
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