10 lines
No EOL
196 B
TypeScript
10 lines
No EOL
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>();
|
|
} |