6ab3adfd43
Leading comments have trailing separator while trailing comments have leading space This removes the extra trailing space in the trailing comments
16 lines
335 B
JavaScript
16 lines
335 B
JavaScript
//// [wrappedAndRecursiveConstraints2.ts]
|
|
class C<T extends C<T>> { // error
|
|
constructor(x: T) { }
|
|
}
|
|
|
|
var c = new C(1);
|
|
var c = new C(new C('')); // error
|
|
|
|
//// [wrappedAndRecursiveConstraints2.js]
|
|
var C = (function () {
|
|
function C(x) {
|
|
}
|
|
return C;
|
|
})();
|
|
var c = new C(1);
|
|
var c = new C(new C('')); // error
|