mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-05 07:45:18 -06:00
Update tests
This commit is contained in:
parent
719b779b6b
commit
2447bd775f
@ -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 {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user