Skip to content
This repository has been archived by the owner on Apr 13, 2023. It is now read-only.

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

Closed
CeylonMigrationBot opened this issue Nov 13, 2015 · 1 comment
Closed

Comments

@CeylonMigrationBot
Copy link

[@jvasileff]

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.

[Migrated from ceylon/ceylon-compiler#2430]

@CeylonMigrationBot CeylonMigrationBot added this to the 1.2.1 milestone Nov 14, 2015
@tombentley tombentley self-assigned this Nov 17, 2015
@FroMage FroMage modified the milestones: 1.2.1, 1.2.2 Jan 11, 2016
@FroMage FroMage modified the milestones: 1.2.2, 1.2.3 Feb 18, 2016
@gavinking
Copy link
Contributor

Thanks!

Sent from my iPhone

On 20 Apr 2016, at 16:44, Tom Bentley notifications@github.com wrote:

Closed #2430 via 6b69f5c.


You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub

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

No branches or pull requests

4 participants