nash-can 0.14.0

Canonicalize a nash source tree, resolving symbols, re-ordering definitions, and preparing a module for type inference.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
---
source: crates/nash-can/src/module.rs
description: "Code:\n\nmodule Main exposing (..)\n\nf =\n    let\n        (x, x) = (1, 2)\n    in\n    x\n"
info: diagnostic
---
nash::names::duplicate_pattern

  × This `let` expression defines `x` more than once!
   ╭─[src/Main.nash:5:13]
 4 │     let
 5 │         (x, x) = (1, 2)
   ·          ┬  ┬
   ·          │  ╰── and another first definition
   ·          ╰── first definition
 6 │     in
   ╰────
  help: Rename one of the definitions.