7 lines
174 B
TypeScript
7 lines
174 B
TypeScript
|
// #16709
|
||
|
declare function dearray<T>(ara: ReadonlyArray<T>): T;
|
||
|
type LiteralType = "foo" | "bar";
|
||
|
declare var alt: Array<LiteralType>;
|
||
|
|
||
|
let foo: LiteralType = dearray(alt);
|