diff --git a/Cargo.lock b/Cargo.lock index 6f13d0241..4afc42646 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3381,7 +3381,7 @@ dependencies = [ [[package]] name = "uiua" -version = "0.9.1" +version = "0.9.2" dependencies = [ "bitflags 2.4.2", "bufreaderwriter", diff --git a/Cargo.toml b/Cargo.toml index c4945aef7..5908050b7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -9,7 +9,7 @@ name = "uiua" readme = "readme.md" repository = "https://github.com/uiua-lang/uiua" rust-version = "1.75" -version = "0.9.1" +version = "0.9.2" [dependencies] # Core dependencies diff --git a/changelog.md b/changelog.md index bccacbeb0..8b5034ecd 100644 --- a/changelog.md +++ b/changelog.md @@ -3,7 +3,12 @@ Uiua is not yet stable. +## 0.9.2 - 2024-02-25 +### Interpreter +- Fix a bug involving patterns like `°°[…]` + ## 0.9.1 - 2024-02-25 +### Crate - Improve Rust library API for getting bindings' values ## 0.9.0 - 2024-02-25 diff --git a/src/algorithm/invert.rs b/src/algorithm/invert.rs index fea27e8e4..b47156466 100644 --- a/src/algorithm/invert.rs +++ b/src/algorithm/invert.rs @@ -95,8 +95,6 @@ pub(crate) fn invert_instrs(instrs: &[Instr], comp: &mut Compiler) -> Option Option( span: *span, boxed: *unbox, }); - Some((input, instrs)) + Some((&[], instrs)) } fn under_unpack_pattern<'a>( diff --git a/tests/under.ua b/tests/under.ua index 08b7158f8..f7c1f65a4 100644 --- a/tests/under.ua +++ b/tests/under.ua @@ -130,6 +130,8 @@ ⍤⟜≍: ⊃(⍜°⊟+|⍜°[⊙∘]+) [1 2] 4 ⍤⟜≍: [¯1 ¯2 ¯3] [⍜[⊙⊙∘]¯ 1 2 3] ⍤⟜≍: [¯1 ¯2 ¯3 ¯4] [⍜[⊙⊙⊙∘]¯ 1 2 3 4] +⍤⟜≍: [1 2 3] ⍜[+1]∘ [1 2 3] +⍤⟜≍: [[2 3 4]] °°[+1] [1 2 3] ⍤⟜≍: ¯18 ⍜(⍥(+1)4)¯ 10 ⍤⟜≍: ¯18 ⍜⍥(+1)¯ 4 10 diff --git a/tests/units.ua b/tests/units.ua index 8bbb77838..5f462fd67 100644 --- a/tests/units.ua +++ b/tests/units.ua @@ -306,9 +306,6 @@ G ← (⚂) ⍤⟜≍: 1 ⧻◴ [F F F] ⍤⟜≍: 3 ⧻◴ [G G G] -# Unique -⍤⟜≍: 1 1 - # Macros F! ← ^!5 G! ← F!^!