15 lines
500 B
Text
15 lines
500 B
Text
|
==== tests/cases/compiler/unknownSymbolInGenericReturnType.ts (1 errors) ====
|
||
|
class Linq {
|
||
|
public static select<T, S>(values: T[], func: (v: T) => A): any[] {
|
||
|
~
|
||
|
!!! 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;
|
||
|
}
|
||
|
}
|
||
|
|