Skip to content

Nil literal doesn't parse in some situations #622

Closed
@brson

Description

@brson

() doesn't parse as a nil literal in some situations that I would expect it to, in particular as meta_item values and in patterns

#[x = ()]  
fn main() {
  auto x = ();
  alt (x) {
    case (()) {
    }
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-frontendArea: Compiler frontend (errors, parsing and HIR)E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions