-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Dot-like operators preview feature does not parse number literals on right hand side #19806
Comments
Simpler example: template `.++`(a, b): untyped = a + b
discard (1 .++ 2) The reason this is broken in devel is because dot-like operators are enabled by default. The same error is given in 1.6 if you do |
.++
Dot-like operators are now deprecated and no longer enabled by default, so this works now, but the issue is probably still there with dot-like operators, so we can keep this open until dot-like operators are gone. (as noted above, this seems like an arbitrary limitation and shouldn't be hard to fix) |
There's a regression on Nim devel that's breaking a previously working example.
Example
Current Output
Expected Output
Possible Solution
`..`
or`==`
, the same example works.Additional Information
This example works with Nim 1.6.6. See https://play.nim-lang.org/#ix=3Ybx.
The text was updated successfully, but these errors were encountered: