Skip to content
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

ambiguous call error when trying to pack an array of characters #11

Closed
dawkot opened this issue Oct 21, 2017 · 2 comments
Closed

ambiguous call error when trying to pack an array of characters #11

dawkot opened this issue Oct 21, 2017 · 2 comments

Comments

@dawkot
Copy link

dawkot commented Oct 21, 2017

import msgpack4nim, streams

var xs: array[160, char]
newStringStream().pack(xs)

Error: ambiguous call; both msgpack4nim.pack_type(s: Stream, val: openarray[T])[declared in C:\Users\kamil.ni
mble\pkgs\msgpack4nim-0.1.7\msgpack4nim.nim(631, 5)] and msgpack4nim.pack_type(s: Stream, val: cstring)[declared in C:\Users\kamil.nimble\pkgs\msgpack4nim-0.1.7\msgpack4nim.nim(1097
, 5)] match for: (Stream, array[0..159, char])

@jangko
Copy link
Owner

jangko commented Oct 22, 2017

which nim version do you use?
I use nim 0.17.3, and have no problem

@dawkot
Copy link
Author

dawkot commented Oct 24, 2017

I used 1.17.2 stable. With devel I have no problem as well, so I guess there's nothing to fix.

@dawkot dawkot closed this as completed Oct 24, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants