Skip to content

Commit

Permalink
chore(compiler): followup fix for PR#11846 (angular#11870)
Browse files Browse the repository at this point in the history
Original PR set [] to any, but any[], is a tighter type and still
works for SNC enabled consumers of the emit.
  • Loading branch information
rkirov authored Sep 23, 2016
1 parent 9be895b commit 52f5ae1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/@angular/compiler/src/output/ts_emitter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 52f5ae1

Please sign in to comment.