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

Infer type of variable from its value #194

Closed
giann opened this issue Sep 27, 2023 · 0 comments · Fixed by #195
Closed

Infer type of variable from its value #194

giann opened this issue Sep 27, 2023 · 0 comments · Fixed by #195
Labels
language Issue related to the language
Milestone

Comments

@giann
Copy link
Collaborator

giann commented Sep 27, 2023

var aString = "hello";

assert(aString is str);

const aNumber = 12;

assert(aNumber is int);
@giann giann added the language Issue related to the language label Sep 27, 2023
@giann giann added this to the 0.3.0 milestone Sep 27, 2023
giann added a commit that referenced this issue Sep 27, 2023
giann added a commit that referenced this issue Sep 27, 2023
giann added a commit that referenced this issue Sep 27, 2023
giann added a commit that referenced this issue Sep 27, 2023
giann added a commit that referenced this issue Sep 27, 2023
giann added a commit that referenced this issue Sep 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
language Issue related to the language
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant