Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

destructure in initializer results in "cannot find symbol" #2430

Open
jvasileff opened this issue Nov 13, 2015 · 0 comments
Open

destructure in initializer results in "cannot find symbol" #2430

jvasileff opened this issue Nov 13, 2015 · 0 comments
Labels
Milestone

Comments

@jvasileff
Copy link
Member

Anything foo()
    =>  object {
            value a -> b = "" -> "";
            noop(if (exists idx = a.lastOccurrence('.')) // error on "a"
                then "" else "");
            print(a.size); // another error on "a"
        };

produces two identical errors:

Cannot find symbol symbol: method getA$priv$()

The errors disappear if you:

  • Remove the expression in noop
  • don't use destructuring to define a
  • use a block instead of a lazy specifier to define foo()

The errors also occurs with tuple destructuring.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants