We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
import sequtils type Test = object a: cstring b: int var test = @[Test(a: "1", b: 1), Test(a: "2", b: 2)] test.insert(@[Test(a: "3", b: 3)], 0) echo test
So nim c -r test.nim outputs @[(a: 3, b: 3), (a: 1, b: 1), (a: 2, b: 2)] as expected. But nim js test.nim outputs @[(a: 3, b: 3), (a: 3, b: 3), (a: 2, b: 2)].
nim c -r test.nim
@[(a: 3, b: 3), (a: 1, b: 1), (a: 2, b: 2)]
nim js test.nim
@[(a: 3, b: 3), (a: 3, b: 3), (a: 2, b: 2)]
Btw,
import sequtils var test = @[1, 2] test.insert(@[3], 0) echo test
Produces the same result in both cases.
The text was updated successfully, but these errors were encountered:
Can be related to #4139.
Sorry, something went wrong.
42c9bb3
No branches or pull requests
So
nim c -r test.nim
outputs@[(a: 3, b: 3), (a: 1, b: 1), (a: 2, b: 2)]
as expected.But
nim js test.nim
outputs@[(a: 3, b: 3), (a: 3, b: 3), (a: 2, b: 2)]
.Btw,
Produces the same result in both cases.
The text was updated successfully, but these errors were encountered: