TypeScript/tests/baselines/reference/typeParameterConstrainedToOuterTypeParameter.js
Sheetal Nandi 6ab3adfd43 Modified the emitComment logic to handle emitting leading or trailing spaces depending on flags
Leading comments have trailing separator while trailing comments have leading space
This removes the extra trailing space in the trailing comments
2014-08-15 14:32:08 -07:00

16 lines
424 B
TypeScript

//// [typeParameterConstrainedToOuterTypeParameter.ts]
interface A<T> {
<U extends T>(x: U[])
}
interface B<T> {
<U extends T>(x: U)
}
var a: A<string>
var b: B<string> = a; // assignment should be legal (both U's get instantiated to any for comparison)
//// [typeParameterConstrainedToOuterTypeParameter.js]
var a;
var b = a; // assignment should be legal (both U's get instantiated to any for comparison)