Skip to content

[Bug] Panic on when using assert_eq on arrays #28992

@AleoAlexander

Description

@AleoAlexander

🐛 Bug Report

The compiler panics at runtime when calling the code below. The program will build with no errors.

Code:

let x : [u8;3] = [4u8;3];
x[0] = 2u8;
assert_eq(x, [2u8,4u8,4u8]);

Error:

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working🖥️ CLIAnything related to the Leo CLI.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions