6ab3adfd43
Leading comments have trailing separator while trailing comments have leading space This removes the extra trailing space in the trailing comments
12 lines
264 B
JavaScript
12 lines
264 B
JavaScript
//// [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
|