TypeScript/tests/cases/compiler/overloadGenericFunctionWithRestArgs.ts
2014-07-12 17:30:19 -07:00

10 lines
196 B
TypeScript

class B<V>{
private id: V;
}
class A<U>{
GetEnumerator: () => B<U>;
}
function Choice<T>(...v_args: T[]): A<T>;
function Choice<T>(...v_args: T[]): A<T> {
return new A<T>();
}