2014-07-13 01:04:16 +02:00
|
|
|
//// [genericFunctionSpecializations1.ts]
|
|
|
|
function foo3<T>(test: string); // error
|
|
|
|
function foo3<T>(test: T) { }
|
|
|
|
|
|
|
|
function foo4<T>(test: string); // valid
|
|
|
|
function foo4<T extends String>(test: T) { }
|
|
|
|
|
|
|
|
//// [genericFunctionSpecializations1.js]
|
2015-03-26 21:46:35 +01:00
|
|
|
function foo3(test) { }
|
|
|
|
function foo4(test) { }
|