Skip to content

Panic when parsing let declaration with no declarations #154

@jasikpark

Description

@jasikpark
!!sqve+l//
















l
let
///
oOo�str!er

as input for the module_roundtrip_naive fuzzer produces this error:

Running: fuzz/artifacts/module_roundtrip_naive/crash-cbb815ba074710aad65fc66c094f2e1600e0c80e
thread 'AST parsing' panicked at /Users/calebjasik-personal/Git/ezno/parser/src/declarations/variable.rs:274:63:
called `Option::unwrap()` on a `None` value

VariableDeclaration::LetDeclaration {
position: start.union(declarations.last().unwrap().get_position()),
declarations,
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingparserRelated to Ezno's syntax parser, AST definitions and output

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions