Leading comments have trailing separator while trailing comments have leading space This removes the extra trailing space in the trailing comments
13 lines
264 B
TypeScript
13 lines
264 B
TypeScript
//// [undefinedInferentialTyping.ts]
|
|
function f<T>(arr: T[], elemnt: T): T {
|
|
return null;
|
|
}
|
|
|
|
var a = f([], 3); // should be number
|
|
|
|
//// [undefinedInferentialTyping.js]
|
|
function f(arr, elemnt) {
|
|
return null;
|
|
}
|
|
var a = f([], 3); // should be number
|