ceylon / ceylon-compiler

DEPRECATED
GNU General Public License v2.0
138 stars 36 forks source link

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

Open jvasileff opened 8 years ago

jvasileff commented 8 years ago
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:

The errors also occurs with tuple destructuring.