Skip to content

unresolved name conflict #322

Closed
Closed
@lkuper

Description

@lkuper

Here's a fun one!

fn main() {

    fn id(int n) -> int {
        // this should have been 'ret n;'
        ret i;
    }

    let int i = id(5);
    log i;
}

This shouldn't compile, and it doesn't, but instead of the expected "unresolved name: i", I get all the way to trans.rs and then get:
upcall fail '.t4410', ../rust/src/comp/middle/trans.rs:3725

Apologies if this is already a known issue -- I didn't see it in a quick look through the issue tracker.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions