From cd88f1ea323f3aa6dbe0ffe3bd0c153a01a46191 Mon Sep 17 00:00:00 2001 From: Anders Hejlsberg Date: Tue, 12 Apr 2016 13:40:21 -0700 Subject: [PATCH] Adding regression test --- .../cases/conformance/controlFlow/controlFlowWhileStatement.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/cases/conformance/controlFlow/controlFlowWhileStatement.ts b/tests/cases/conformance/controlFlow/controlFlowWhileStatement.ts index 697a867b88..dd31114adf 100644 --- a/tests/cases/conformance/controlFlow/controlFlowWhileStatement.ts +++ b/tests/cases/conformance/controlFlow/controlFlowWhileStatement.ts @@ -37,7 +37,9 @@ function e() { let x: string | number; x = ""; while (cond) { + x; // string | number x = 42; + x; // number } x; // string | number }