From 2447bd775f4c33667e7f8ce7edd4b7da00d0870f Mon Sep 17 00:00:00 2001 From: Anders Hejlsberg Date: Fri, 4 Oct 2019 16:01:09 -0700 Subject: [PATCH] Update tests --- .../cases/conformance/controlFlow/controlFlowOptionalChain.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/cases/conformance/controlFlow/controlFlowOptionalChain.ts b/tests/cases/conformance/controlFlow/controlFlowOptionalChain.ts index dadb1b36076..dabeea617f4 100644 --- a/tests/cases/conformance/controlFlow/controlFlowOptionalChain.ts +++ b/tests/cases/conformance/controlFlow/controlFlowOptionalChain.ts @@ -61,8 +61,8 @@ o2.f; declare const o3: { x: 1, y: string } | { x: 2, y: number } | undefined; if (o3?.x === 1) { - o3; // TODO: should be `{ x: y, y: string }` - o3.x; // TODO: should not be an error. + o3; + o3.x; o3?.x; } else {