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()
produces two identical errors:
The errors disappear if you:
noop
a
foo()
The errors also occurs with tuple destructuring.