-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
genericAssignAux
runtime error
#16706
Labels
Comments
Reduced examples: import std/times
type
Data = object
shifts*: seq[DateTime]
var shifts = newSeq[DateTime](5)
var data = Data(shifts: shifts) |
ringabout
added a commit
to ringabout/Nim
that referenced
this issue
Jan 14, 2021
further reduced without any import: when true:
type
A = object of RootObj
a0: string
B = object
b0: seq[A]
var c = newSeq[A](2)
var d = B(b0: c) => #16721 |
ringabout
added a commit
to ringabout/Nim
that referenced
this issue
Jan 15, 2021
narimiran
pushed a commit
that referenced
this issue
Feb 1, 2021
ardek66
pushed a commit
to ardek66/Nim
that referenced
this issue
Mar 26, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
reduced a bit from a case mentioned in forum /cc @xflywind
Example
Current Output
/Users/timothee/git_clone/nim/timn/tests/nim/all/t11694.nim(76) t11694
/Users/timothee/git_clone/nim/Nim_devel/lib/system/assign.nim(175) genericSeqAssign
/Users/timothee/git_clone/nim/Nim_devel/lib/system/assign.nim(139) genericAssign
/Users/timothee/git_clone/nim/Nim_devel/lib/system/assign.nim(100) genericAssignAux
/Users/timothee/git_clone/nim/Nim_devel/lib/system/assign.nim(128) genericAssignAux
/Users/timothee/git_clone/nim/Nim_devel/lib/system/assign.nim(26) genericAssignAux
/Users/timothee/git_clone/nim/Nim_devel/lib/system/assign.nim(22) genericAssignAux
/Users/timothee/git_clone/nim/Nim_devel/lib/system/assign.nim(128) genericAssignAux
/Users/timothee/git_clone/nim/Nim_devel/lib/system/assign.nim(22) genericAssignAux
/Users/timothee/git_clone/nim/Nim_devel/lib/system/assign.nim(125) genericAssignAux
/Users/timothee/git_clone/nim/Nim_devel/lib/system/fatal.nim(53) sysFatal
Error: unhandled exception: invalid object assignment [ObjectAssignmentDefect]
Expected Output
works
Additional Information
devel 1.5.1 61fd19c
The text was updated successfully, but these errors were encountered: