chore(compiler): followup fix for PR#11846 (#11870)

Original PR set [] to any, but any[], is a tighter type and still
works for SNC enabled consumers of the emit.
This commit is contained in:
Rado Kirov 2016-09-24 07:13:05 +09:00 committed by GitHub
parent 9be895b6da
commit 52f5ae1961
1 changed files with 1 additions and 1 deletions

View File

@ -86,7 +86,7 @@ class _TsEmitterVisitor extends AbstractEmitterVisitor implements o.TypeVisitor
}
const result = super.visitLiteralArrayExpr(ast, ctx);
if (ast.entries.length === 0) {
ctx.print(' as any)');
ctx.print(' as any[])');
}
return result;
}