diff --git a/src/compiler/binder.ts b/src/compiler/binder.ts index 9d6d9fab35b..1682cbdcd44 100644 --- a/src/compiler/binder.ts +++ b/src/compiler/binder.ts @@ -575,10 +575,8 @@ module ts { bindChildren(node, 0, /*isBlockScopeContainer*/ true); break; default: - let saveParent = parent; - parent = node; - forEachChild(node, bind); - parent = saveParent; + bindChildren(node, 0, /*isBlockScopeContainer*/ false); + break; } }