-
-
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
No TNimNode generated for cimport object [--mm:refc] #19484
Comments
Related, also discovered while using nimraylib_now: #19482 |
So, I found a manual fix. I changed
|
The problem is, |
This bug is very specific. I don't why it happens, but it happens. The
Rectangle
is a struct from C. Using the equivalent definition in Nim don't have this bug.Example
(clone this with git)
https://gist.github.com/locriacyber/c797c39e5583745e13a4caed68a38453
Current Output
Expected Output
The two output should be the same.
Additional Information
This issue exists in Nim version 1.2.0 too.
As Elegantbeef pointed out in #nim-lang:matrix.org that this bug only exists with
--mm:refc
, since other memory models don't need type info (TNimNode
) at runtime for this example. Not sure if this will bite me back in the future, but I'll use--mm:orc
for now.The text was updated successfully, but these errors were encountered: