Yes. I just tried the new compiler option and I can confirm that this is the case. Only local variables are initialized.
Additionally:
This:
var len:int;
Compiles to:
var /** @type {number} */ len = 0 = null;
> On Aug 2, 2017, at 7:34 AM, Alex Harui <[email protected]> wrote:
>
> BTW, IIRC, VarDeclarationEmitter only handles local variables and not
> instance variables.
