We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
type MyIsolated[T] = object val: T proc `=copy`*[T](dest: var MyIsolated[T]; src: MyIsolated[T]) {.error.} block: let a = MyIsolated[int](val: 3) let b = a
Reports that a must be copied, I'd guess it's being handled as if it's a global variable.
a
cd3cf3a
(8, 11) Error: '=copy' is not available for type <MyIsolated>; requires a copy because it's not the last read of 'a'; routine: a
No response
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Description
Reports that
a
must be copied, I'd guess it's being handled as if it's a global variable.Nim Version
cd3cf3a
Current Output
Expected Output
No response
Possible Solution
No response
Additional Information
No response
The text was updated successfully, but these errors were encountered: