18 lines
No EOL
619 B
Text
18 lines
No EOL
619 B
Text
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;
|
|
}
|
|
}
|
|
|