Skip to content

Resolve "x: i32[3] = [1, 2, 3] fails" #870

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

Closed

Conversation

Thirumalai-Shaktivel
Copy link
Collaborator

Closes #324

@Thirumalai-Shaktivel Thirumalai-Shaktivel added the asr ASR related changes label Aug 2, 2022
from ltypes import i32, f64

def test_array_01():
x: f64[3] = [1.0, 2.0, 3.0]
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This approach is not consistent with CPython:
In CPython, the variable x will be of type list. But here as can be seen it is of type array!

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

Successfully merging this pull request may close these issues.

x: i32[3] = [1, 2, 3] fails
1 participant