From c3c2ad1454a5df39b10596692934081797da206b Mon Sep 17 00:00:00 2001 From: Martin Probst Date: Fri, 12 Jun 2015 15:49:04 -0700 Subject: [PATCH] fix: improve type of TreeNode.children. --- modules/angular2/src/core/compiler/element_injector.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {