mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-27 22:39:59 -05:00
Fix bug: result of createUnionOrIntersectionProperty may be undefined (#21332)
This commit is contained in:
@@ -2,7 +2,9 @@
|
||||
|
||||
////interface I { x: number; }
|
||||
////interface Many<T> extends ReadonlyArray<T> { extra: number; }
|
||||
////const x: I | I[] | Many<string> = { /**/ };
|
||||
////class C { private priv: number; }
|
||||
////const x: I | I[] | Many<string> | C = { /**/ };
|
||||
|
||||
// We specifically filter out any array-like types.
|
||||
// Private members will be excluded by `createUnionOrIntersectionProperty`.
|
||||
verify.completionsAt("", ["x"]);
|
||||
|
||||
Reference in New Issue
Block a user