-
Notifications
You must be signed in to change notification settings - Fork 10
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
Compilation error with ref type #11
Comments
I've tried to investigate this and so far I'm hitting into insurmountable Nim issues in the behaviour of functions such as import
../json_serialization
type
DummyObj* = object of RootObj
a: float
DummyRef = ref DummyObj
var dr = new(DummyRef)
dr.a = 100225.00
echo "resref:\n\t", dr.toJson |
nice, it works. I agree this is Nim compiler internal inconsistency. |
This should now work fine in Nim >= 1.2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
nim-stew\stew\shims\macros.nim(43, 28) Error: index 2 not in 0 .. -1
The text was updated successfully, but these errors were encountered: