Skip to content

Using hole var _ leads to most other vars in tensor assignment being marked as unused in FunC #55

@krigga

Description

@krigga

Example:

int main() {
    return 0;
}

(int, int) foo() {
    return (1, 2);
}

(int, int) get_foo() {
    (
        _,
        int b
    ) = foo();

    return 1 + b;
}

b will be marked as unused.

However note that in some cases some vars are marked used correctly.

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions