18 lines
619 B
Plaintext
18 lines
619 B
Plaintext
tests/cases/compiler/unknownSymbolInGenericReturnType.ts(2,61): error TS2304: Cannot find name 'A'.
|
|
|
|
|
|
==== tests/cases/compiler/unknownSymbolInGenericReturnType.ts (1 errors) ====
|
|
class Linq {
|
|
public static select<T, S>(values: T[], func: (v: T) => A): any[] {
|
|
~
|
|
!!! error TS2304: Cannot find name 'A'.
|
|
var result = new Array(values.length);
|
|
|
|
for (var i = 0; i < values.length; i++) {
|
|
result[i] = func(values[i]);
|
|
}
|
|
|
|
return result;
|
|
}
|
|
}
|
|
|