Skip to content

Commit 5f3f2d3

Browse files
committed
Create separate control flows for property declarations with initializers
1 parent 166f399 commit 5f3f2d3

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/compiler/binder.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1142,6 +1142,8 @@ namespace ts {
11421142

11431143
case SyntaxKind.ModuleBlock:
11441144
return ContainerFlags.IsControlFlowContainer;
1145+
case SyntaxKind.PropertyDeclaration:
1146+
return (<PropertyDeclaration>node).initializer ? ContainerFlags.IsControlFlowContainer : 0;
11451147

11461148
case SyntaxKind.CatchClause:
11471149
case SyntaxKind.ForStatement:

0 commit comments

Comments
 (0)