diff --git a/modules/angular2/src/core/compiler/element_injector.ts b/modules/angular2/src/core/compiler/element_injector.ts index 6bfdd5518b..7bd393d1b4 100644 --- a/modules/angular2/src/core/compiler/element_injector.ts +++ b/modules/angular2/src/core/compiler/element_injector.ts @@ -150,7 +150,7 @@ export class TreeNode> { get parent() { return this._parent; } // TODO(rado): replace with a function call, does too much work for a getter. - get children(): TreeNode[] { + get children(): T[] { var res = []; var child = this._head; while (child != null) {