15 lines
514 B
Plaintext
15 lines
514 B
Plaintext
==== 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;
|
|
}
|
|
}
|
|
|