Skip to content

[BUG] error: local variable not used after using declaration but in fact it is #962

Closed
@wolfseifert

Description

@wolfseifert

After pulling in 510eae8:

prntln: (s: ::std::string) = {
  using ::std;
  cout << "A: (s)$" << endl;
}

does not transpile

inherit.cpp2(1,10): error: local variable 's' is not used; consider changing its name to '_' to make it explicitly anonymous, or removing it entirely if its side effects are not needed

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions