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
error: Expected type to be "MutArray<num>", but got "Array<num>" instead
--> main.w:1:33
|
1 | let x = MutArray<MutArray<num>>[[1, 2, 3]];
| ^^^^^^^^^ Expected type to be "MutArray<num>", but got "Array<num>" instead
I expected this:
It should allow the code to compile since the full types are specified on the left hand side
This issue hasn't seen activity in 90 days. Therefore, we are marking this issue as stale for now. It will be closed after 7 days.
Feel free to re-open this issue when there's an update or relevant information to be added.
Thanks!
This issue hasn't seen activity in 90 days. Therefore, we are marking this issue as stale for now. It will be closed after 7 days.
Feel free to re-open this issue when there's an update or relevant information to be added.
Thanks!
I tried this:
This happened:
It raises the following error:
I expected this:
It should allow the code to compile since the full types are specified on the left hand side
Is there a workaround?
Fully specify the types:
For 3D arrays this is quite laborious
Anything else?
No response
Wing Version
0.70.6
Node.js Version
20.11.1
Platform(s)
MacOS
Community Notes
The text was updated successfully, but these errors were encountered: