-
Notifications
You must be signed in to change notification settings - Fork 201
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Expected type to be "Array<Json>", but got "Array<Json>" instead #5421
Comments
The error is similar the one in #3822, but it might not be the same cause |
Another variation: let base = Array<Json>["foo"];
let obj = {
first: "ok",
second: ["cool"].concat(base)
}; Here's the error it produces today
In principle this code should also compile if |
staycoolcall911
moved this from 🆕 New - not properly defined
to 🤝 Backlog - handoff to owners
in Wing
Jan 24, 2024
Another example
yields:
The easiest fix is to convert the MutArray to a plain Array by calling |
5 tasks
github-project-automation
bot
moved this from 🤝 Backlog - handoff to owners
to ✅ Done
in Wing
Aug 12, 2024
Congrats! 🚀 This was released in Wing 0.82.3. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I tried this:
This happened:
I expected this:
No error
Is there a workaround?
If I change the second statement to
then it compiles.
Anything else?
No response
Wing Version
0.54.28
Node.js Version
20.9.0
Platform(s)
MacOS
Community Notes
The text was updated successfully, but these errors were encountered: