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
C:\Users\Noname\nimcache\a_d\@ma.nim.c: In function 'init__a_9':
C:\Users\Noname\nimcache\a_d\@ma.nim.c:111:25: error: incompatible types when assigning to type 'tyOpenArray__eiGhHdDILTzcMBo9aGYM3ww' from type 'NimStringDesc **'
111 | result.tokens = tokens;
| ^~~~~~
Error: execution of an external compiler program 'gcc.exe -c -w -fmax-errors=3 -mno-ms-bitfields -IC:\Users\Noname\.choosenim\toolchains\nim-1.6.6\lib -IC:\Users\Noname\Desktop -o C:\Users\Noname\nimcache\a_d\@ma.nim.c.o C:\Users\Noname\nimcache\a_d\@ma.nim.c' failed with exit code: 1
/usercode/nimcache/@min.nim.c: In function 'main__in_9':
/usercode/nimcache/@min.nim.c:177:82: error: 'X5BX5D___in_80(test.tokens.Field0, test.tokens.Field1, T1_)' is a pointer; did you mean to use '->'?
test.tokens.Field0 = X5BX5D___in_80(test.tokens.Field0, test.tokens.Field1, T1_).Field0; test.tokens.Field1 = X5BX5D___in_80(test.tokens.Field0, test.tokens.Field1, T1_).Field1;
^
->
/usercode/nimcache/@min.nim.c:177:171: error: 'X5BX5D___in_80(test.tokens.Field0, test.tokens.Field1, T1_)' is a pointer; did you mean to use '->'?
test.tokens.Field0 = X5BX5D___in_80(test.tokens.Field0, test.tokens.Field1, T1_).Field0; test.tokens.Field1 = X5BX5D___in_80(test.tokens.Field0, test.tokens.Field1, T1_).Field1;
proctest(a: openArray[int]) =echo (a, a.len)
test [1, 2, 3]
error:
error: incompatible types when assigning to type 'tyOpenArray__0HB6wOMHiJYheBmdOv6sWw' {aka 'struct <anonymous>'} from type 'NI *' {aka 'long long int *'}
T2_.Field0 = a;
Example
https://play.nim-lang.org/#ix=44yx
Current Output
Expected Output
Workaround
The text was updated successfully, but these errors were encountered: