13 lines
241 B
TypeScript
13 lines
241 B
TypeScript
class B<V>{
|
|
private id: V;
|
|
}
|
|
|
|
class A<U>{
|
|
GetEnumerator: () => B<U>;
|
|
}
|
|
|
|
function Choice<T>(args: T[]): A<T>;
|
|
function Choice<T>(...v_args: T[]): A<T>;
|
|
function Choice<T>(...v_args: any[]): A<T>{
|
|
return new A<T>();
|
|
}
|