10000 Comprehension compile failed · Issue #513 · erg-lang/erg · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Comprehension compile failed #513
Open
@islatan

Description

@islatan

Describe the bug?

I tried compiling an example from The Erg Book but failed

Reproducible code

assert [(i, j) | i <- 0..2; j <- 0..2; (i + j) % 2 == 0] == [(0, 0), (0, 2), (1, 1), (2, 0), (2, 2)]

Expected result

compile success

Actual result

🚫 Error[#0809]: File test.er, line 3, 

3 │ assert [(i, j) | i <- 0..2; j <- 0..2; (i + j) % 2 == 0] == [(0, 0), (0, 2), (1, 1), (2, 0), (2, 2)]   
  ·                                        -

SyntaxError: invalid syntax

and
image

Additional context

No response

Erg version

0.6.36

Python version

Python3.11

OS

Windows 11

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0