You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
block correct:
var point = (x: 10, y: 4)
point = (x: point.y, y: - point.x)
echo point
block wrong:
var point = (x: 10, y: 4)
point =iftrue: (x: point.y, y: - point.x)
else: point
echo point
Current Output
(x: 4, y: -10)
(x: 4, y: -4)
Expected Output
(x: 4, y: -10)
(x: 4, y: -10)
Additional Information
$ nim -v
Nim Compiler Version 1.5.1 [Windows: amd64]
Compiled at 2021-06-20
Copyright (c) 2006-2021 by Andreas Rumpf
The text was updated successfully, but these errors were encountered:
hamidb80
changed the title
wrong variable substitution in conditional assignment
wrong variable substitution in conditional assignment with default GC
Jun 24, 2021
hamidb80
changed the title
wrong variable substitution in conditional assignment with default GC
wrong variable substitution in conditional assignment with refc GC
Apr 20, 2022
Example
Current Output
Expected Output
Additional Information
The text was updated successfully, but these errors were encountered: