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
type T =object
v: array[100, byte]
iteratorpairs*(t: T): (int, lentarray[100, byte]) =yield (0, t.v)
for a, b indefault(T):
echo a, "", b
Nim Version
2.0.8
Current Output
nim c -r "testit.nim"
...CC: testit.nim
testit.nim: In function ‘NimMainModule’:
testit.nim:9:191: error: assignment to ‘NU8 *’ {aka ‘unsigned char *’} from incompatible pointer type ‘NU8 (*)[100]’ {aka ‘unsigned char (*)[100]’} [-Wincompatible-pointer-types]
9 | for a, b in default(T):
| ^
Error: execution of an external compiler program 'gcc ...'
Expected Output
No response
Known Workarounds
No response
Additional Information
No response
The text was updated successfully, but these errors were encountered:
Description
Nim Version
2.0.8
Current Output
Expected Output
No response
Known Workarounds
No response
Additional Information
No response
The text was updated successfully, but these errors were encountered: