gleam-lang / gleam

⭐️ A friendly language for building type-safe, scalable systems!
https://gleam.run
Apache License 2.0
16.38k stars 684 forks source link

Pattern matching problem involving improper scoping #3253

Open jtenner opened 2 weeks ago

jtenner commented 2 weeks ago

To Reproduce

let assert #([d, ..], <<_:size(d)>>) = #([2, 3], <<2:2>>)

System Specs

Runtime: erlang OS: ubuntu using wsl on Windows 10 Gleam version output:

$ gleam --version
gleam 1.2.1

The Problem

Identifiers are placed in the scope of each pattern, before they are initialized in the match arm.

Is there any way I can help?

lpil commented 2 weeks ago

Thank you