-
-
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 cast ref to RootRef in Arc/Orc #20016
Labels
Comments
It makes https://github.com/yglukhov/nimsl fail. |
It seems that ref object cannot cast to RootRef unless it inherits from RootObj or RootRef with arc/orc. In this case |
Workaround: type
Color = ref object
var x = Color()
let y = cast[pointer](x)
# use Gc_ref(y) when it is needed |
Workaround: type
Color = ref object
var x = Color()
let y = cast[pointer](x)
# use Gc_ref(y) when it is needed |
This was referenced Sep 6, 2022
Merged
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
errors
expression cannot be cast to RootRef=ref RootObj
in Arc/Orcref #19972
The text was updated successfully, but these errors were encountered: