-
-
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
Cannot borrow var float64 in infix assignment #14440
Labels
Comments
And another one, it's probably the infix: type Time = distinct float32
func `<`(a, b: Time): bool {.borrow.}
echo Time(1) < Time(2)
|
Fixed with ebd1cc0 |
Clyybber
added a commit
to Clyybber/Nim
that referenced
this issue
Jun 23, 2020
Clyybber
added a commit
to Clyybber/Nim
that referenced
this issue
Jun 23, 2020
Clyybber
added a commit
that referenced
this issue
Jun 23, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The following does not work and returns a strange error:
So it seems like the distinct type was correctly unwrapped but then the actual expression was not properly forwarded to the rest of the semcheck pass?
The text was updated successfully, but these errors were encountered: