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
eladcohen@Elads-w-MacBook-Pro a2 % wing test main.w
error: Preflight field "s" is not initialized
--> main.w:2:7
|
2 | pub s: str = "123";
| ^ Preflight field "s" is not initialized
I expected this:
i wont have to explicitly assign to s again in init (or at least a compiler error on the declaration line)
Is there a workaround?
No response
Component
Compiler
Wing Version
No response
Node.js Version
No response
Platform(s)
No response
Anything else?
No response
Community Notes
Please vote by adding a 👍 reaction to the issue to help us prioritize.
If you are interested to work on this issue, please leave a comment.
The text was updated successfully, but these errors were encountered:
I tried this:
This happened:
I expected this:
i wont have to explicitly assign to
s
again ininit
(or at least a compiler error on the declaration line)Is there a workaround?
No response
Component
Compiler
Wing Version
No response
Node.js Version
No response
Platform(s)
No response
Anything else?
No response
Community Notes
The text was updated successfully, but these errors were encountered: