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

0.5: 1.im gives error ERROR: syntax: invalid numeric constant "1.i" #16609

Closed
dlfivefifty opened this issue May 27, 2016 · 2 comments · Fixed by #16675
Closed

0.5: 1.im gives error ERROR: syntax: invalid numeric constant "1.i" #16609

dlfivefifty opened this issue May 27, 2016 · 2 comments · Fixed by #16675
Labels
domain:error handling Handling of exceptions by Julia or the user parser Language parsing and surface syntax

Comments

@dlfivefifty
Copy link
Contributor

Not sure if this is intentional or not, but the syntax 1.im now gives an error

ERROR: syntax: invalid numeric constant "1.i"

If this is intentional, I would have expected a more explanatory error message.

@yuyichao
Copy link
Contributor

This is intentional. #16339

@JeffBezanson
Copy link
Sponsor Member

Maybe it would be better to say "numeric literals ending in . cannot be implicitly multiplied" or similar?

@ivarne ivarne added the domain:error handling Handling of exceptions by Julia or the user label May 27, 2016
@tkelman tkelman added the parser Language parsing and surface syntax label May 27, 2016
JeffBezanson added a commit that referenced this issue May 31, 2016
fix #16609, better error for `1.im`
fix #16671, parsing `1.` by itself
fix #16672, duplicate line node in block expression
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
domain:error handling Handling of exceptions by Julia or the user parser Language parsing and surface syntax
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants