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

repr does not work with 'var openarray' parameter in function #7878

Electrux opened this issue May 25, 2018 · 0 comments


None yet
1 participant
Copy link

commented May 25, 2018

I started with Nim yesterday so I don't really know what is the problem here.
Tried to use:

echo repr( variable )

in a function whose parameter was:

variable: var openarray[ int ]

Got the following error:
screen shot 2018-05-25 at 14 53 47

The code is as follows:

proc test( variable: var openarray[ int ] ) =
  echo repr( variable )

var arr = [ 1, 2, 3, 4, 5, 6 ]

test( arr )

@Araq Araq closed this in d69a784 Jan 14, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.