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

newruntime: `Error: system module needs: NimStringDesc` when calling `$` inside method on an object variant #11048

nc-x opened this issue Apr 17, 2019 · 0 comments


None yet
2 participants
Copy link

commented Apr 17, 2019

  Kind* = enum
  Obj* = object
    case kind*: Kind
    of B: b*: bool

method p*(o: Obj): string {.base.} =
  return $o.b

nim c --newruntime t.nim - Error: system module needs: NimStringDesc

Works fine with proc, or $o.

@Araq Araq closed this in 5bdab04 Apr 17, 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.