Skip to content

Name shadowing not working in v0.14.0 #956

@SWW13

Description

@SWW13

test.rn:

pub fn main() {
    let x = Some(1);
    
    if let Some(x) = x {
    	println!("{}", x);
    }
}

Rune v0.13.4:

$ rune run test.rn
1

Rune v0.14.0 (2d69c58):

$ rune run test.rn
error: Missing variable `3`
  ┌─ test3.rn:4:22
  │
4 │     if let Some(x) = x {
  │                      ^ Missing variable `3`

Error: Failed to build rune sources (see diagnostics for details)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions