Leading comments have trailing separator while trailing comments have leading space This removes the extra trailing space in the trailing comments
15 lines
312 B
JavaScript
15 lines
312 B
JavaScript
//// [genericFunctions1.ts]
|
|
function foo<T > (x: T) { return x; }
|
|
|
|
var x = foo(5); // 'x' should be number
|
|
|
|
//// [genericFunctions1.js]
|
|
function foo(x) {
|
|
return x;
|
|
}
|
|
var x = foo(5); // 'x' should be number
|
|
|
|
|
|
//// [genericFunctions1.d.ts]
|
|
declare function foo<T>(x: T): T;
|
|
declare var x: number;
|