Leading comments have trailing separator while trailing comments have leading space This removes the extra trailing space in the trailing comments
25 lines
400 B
TypeScript
25 lines
400 B
TypeScript
//// [genericClasses1.ts]
|
|
class C<T> {
|
|
public x: T;
|
|
}
|
|
|
|
var v1 = new C<string>();
|
|
|
|
var y = v1.x; // should be 'string'
|
|
|
|
//// [genericClasses1.js]
|
|
var C = (function () {
|
|
function C() {
|
|
}
|
|
return C;
|
|
})();
|
|
var v1 = new C();
|
|
var y = v1.x; // should be 'string'
|
|
|
|
|
|
//// [genericClasses1.d.ts]
|
|
declare class C<T> {
|
|
x: T;
|
|
}
|
|
declare var v1: C<string>;
|
|
declare var y: string;
|