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

[BUG] list literal cannot be initialized #149

Closed
Syuparn opened this issue May 14, 2023 · 2 comments
Closed

[BUG] list literal cannot be initialized #149

Syuparn opened this issue May 14, 2023 · 2 comments
Labels
bug Something isn't working mojo-repo Tag all issues with this label

Comments

@Syuparn
Copy link

Syuparn commented May 14, 2023

Bug Description

When list literal is created, a compile error below is raised.

Steps to Reproduce

  1. Open the playground
  2. Run the following code
[]

Context

error: Expression [1]:18:3: recursive reference to declaration
  def __mojo_repl_expr_body__() -> None:
  ^

Expression [1]:18:3: previously used here
  def __mojo_repl_expr_body__() -> None:
  ^

The error is raised regardless of the length of the list (error message is completely same).

@Syuparn Syuparn added the bug Something isn't working label May 14, 2023
@Syuparn
Copy link
Author

Syuparn commented May 14, 2023

Is this related to #100 ?

@Syuparn
Copy link
Author

Syuparn commented May 14, 2023

Sorry, this was not reproduced when runtime is restarted. This looks independent to list literal.

@Syuparn Syuparn closed this as completed May 14, 2023
@ematejska ematejska added the mojo-repo Tag all issues with this label label May 7, 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 mojo-repo Tag all issues with this label
Projects
None yet
Development

No branches or pull requests

2 participants