Skip to content

Commit

Permalink
wrap-up list module, enable tests when possible.
Browse files Browse the repository at this point in the history
  Few TODOs from there:

  - [] Seems like the parser can't parse negative literals.
    Current work-around: write as `0 - n` instead of `-n`.

  - [] The formatter confuses tuples with function arguments
    in expression blocks. So writing:

    ```
    let (xs, ys) = unzip(rest)
    ([x, ..xs], [y, ..ys])
    ```

    is wrongly turned into:

    ```
    let (xs, ys) = unzip(rest)([x, ..xs], [y, ..ys])
    ```

  - [] Inline comments and function documentation comments are wrongly
    grouped together by the formatter.

  - [] The compiler panicks when two tests have the same name:

    ```
    test foo() { todo }
    test foo() { todo }
    ```

    ```
    Error:
      × Main thread panicked.
      ├─▶ at crates/lang/src/tipo/infer.rs:181:43
      ╰─▶ Could not find hydrator for fn
      help: set the `RUST_BACKTRACE=1` environment variable to display a backtrace.
    ```

  - As well as any acceptance tests added to: aiken-lang/aiken#166
  • Loading branch information
KtorZ committed Dec 14, 2022
1 parent 067584a commit 02d69da
Showing 1 changed file with 277 additions and 157 deletions.
Loading

0 comments on commit 02d69da

Please sign in to comment.