-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Closed
Description
Error: cannot convert -1 to uint (inside tuples)
Example
const x1 = cast[uint](-1)
discard $x1 # works
discard $(x1,) # Error: cannot convert -1 to uint
# discard $(foo: x1) # Error: cannot convert -1 to uint
# works for object, not tupleCurrent Output
const x1 = cast[uint](-1)
discard $x1 # works
discard $(x1,) # Error: cannot convert -1 to uint
Expected Output
works
Additional Information
- [regression] VM: Error: cannot convert -1 to uint64 #13661 got fixed but this issue remains
- latest devel bec0522 1.1.1
Metadata
Metadata
Assignees
Labels
No labels