Skip to content
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

unable to parse undefined undefined as a string #6422

Open
eladb opened this issue May 6, 2024 · 0 comments
Open

unable to parse undefined undefined as a string #6422

eladb opened this issue May 6, 2024 · 0 comments
Labels
🐛 bug Something isn't working 🛠️ compiler Compiler

Comments

@eladb
Copy link
Contributor

eladb commented May 6, 2024

I tried this:

let s: Json? = nil;
s?.asStr();

This happened:

An error has occurred:
Failed to compile.

Error: unable to parse undefined undefined as a string
  --> wing/main.w:3:1
  | let s: Json? = nil;
  | 
3 | s?.asStr();
  | ^
at /app/wing/main.w:3:1

I expected this:

No response

Is there a workaround?

No response

Anything else?

No response

Wing Version

No response

Node.js Version

No response

Platform(s)

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.
@eladb eladb added the 🐛 bug Something isn't working label May 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Something isn't working 🛠️ compiler Compiler
Projects
Status: 🤝 Backlog - handoff to owners
Development

No branches or pull requests

2 participants