2017-09-14 21:37:38 +02:00
|
|
|
/// <reference path="fourslash.ts" />
|
|
|
|
|
|
|
|
////interface I { x: number; }
|
|
|
|
////interface Many<T> extends ReadonlyArray<T> { extra: number; }
|
2018-01-22 19:15:57 +01:00
|
|
|
////class C { private priv: number; }
|
|
|
|
////const x: I | I[] | Many<string> | C = { /**/ };
|
2017-09-14 21:37:38 +02:00
|
|
|
|
|
|
|
// We specifically filter out any array-like types.
|
2018-01-22 19:15:57 +01:00
|
|
|
// Private members will be excluded by `createUnionOrIntersectionProperty`.
|
2018-10-29 18:03:25 +01:00
|
|
|
verify.completions({ marker: "", exact: "x" });
|