Leading comments have trailing separator while trailing comments have leading space This removes the extra trailing space in the trailing comments
20 lines
312 B
TypeScript
20 lines
312 B
TypeScript
//// [generics0.ts]
|
|
interface G<T> {
|
|
x: T;
|
|
}
|
|
|
|
var v2: G<string>;
|
|
|
|
var z = v2.x; // 'y' should be of type 'string'
|
|
|
|
//// [generics0.js]
|
|
var v2;
|
|
var z = v2.x; // 'y' should be of type 'string'
|
|
|
|
|
|
//// [generics0.d.ts]
|
|
interface G<T> {
|
|
x: T;
|
|
}
|
|
declare var v2: G<string>;
|
|
declare var z: string;
|