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: internal error when iterating over seq (which is a field of an object) inside methods #11050

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

Comments

Projects
None yet
2 participants
@nc-x
Copy link
Contributor

commented Apr 17, 2019

type
  Obj* =  object
    f*: seq[int]

method x(o: Obj) =
  for n in o.f:
    discard
nim c --newruntime t.nim
C:\Nim\lib\system\iterators.nim(154, 20) Error: internal error: '=destroy' operator not found for type seq[int]

Works fine in a proc, or directly with a seq which is not a field of an object.

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.