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

Cannot create new empty list #78

Open
thecooltechguy opened this issue Mar 10, 2021 · 1 comment
Open

Cannot create new empty list #78

thecooltechguy opened this issue Mar 10, 2021 · 1 comment

Comments

@thecooltechguy
Copy link
Contributor

Hi @ricky8554 ,

I'm part of the comprehensions team, and when we were doing some tests, we realized the following fails:

a: [int] = None
a = []

with the following error:

line 2: a 
TypeMismatchError: Expected type 'number'; got type 'none'

Is this a valid program, or is this a bug?

Thanks!

@ricky8554
Copy link
Contributor

Hi @thecooltechguy,

It was a bug in our program, and it has been fixed locally and will update to main on our next PR.

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants