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
In generated c code, the field is of pointer type, while the assignment statement is trying to assign the value directly to the pointer
{.experimental:"views".}
typeInnerVar2=object
value:varfloatproctest_inner_var2=var i =0.0var a =InnerVar2(value:i)
a.value =123.456echo i
test_inner_var2()
Nim Version
Nim Compiler Version 2.1.1 [Linux: amd64]
Compiled at 2023-11-02
Copyright (c) 2006-2023 by Andreas Rumpf
git hash: 40e33de
active boot switches: -d:release
Current Output
error: incompatible types when assigning to type 'NF *' {aka 'double *'} from type 'double'
101 | nimln_(107); a.value = 123.456;
| ^~~~~~~
Error: execution of an external compiler program 'gcc -c -w -fmax-errors=3 -pthread -I'/home/umidazo/.choosenim/toolchains/nim-#devel/lib' -I/mnt/e/Workspace/nim -o /home/umidazo/.cache/nim/test_common_d/@mtest_common.nim.c.o /home/umidazo/.cache/nim/test_common_d/@mtest_common.nim.c' failed with exit code: 1
Expected Output
123.456
Possible Solution
No response
Additional Information
No response
The text was updated successfully, but these errors were encountered:
Description
In generated c code, the field is of pointer type, while the assignment statement is trying to assign the value directly to the pointer
Nim Version
Nim Compiler Version 2.1.1 [Linux: amd64]
Compiled at 2023-11-02
Copyright (c) 2006-2023 by Andreas Rumpf
git hash: 40e33de
active boot switches: -d:release
Current Output
Expected Output
Possible Solution
No response
Additional Information
No response
The text was updated successfully, but these errors were encountered: