Leading comments have trailing separator while trailing comments have leading space This removes the extra trailing space in the trailing comments
44 lines
1.1 KiB
TypeScript
44 lines
1.1 KiB
TypeScript
//// [objectTypeWithConstructSignatureHidingMembersOfExtendedFunction.ts]
|
|
interface Function {
|
|
data: number;
|
|
[x: string]: Object;
|
|
}
|
|
|
|
interface I {
|
|
new(): number;
|
|
apply(a: any, b?: any): void;
|
|
call(thisArg: number, ...argArray: number[]): any;
|
|
}
|
|
|
|
var i: I;
|
|
var r1: (a: any, b?: any) => void = i.apply;
|
|
var r1b: (thisArg: number, ...argArray: number[]) => void = i.call;
|
|
var r1c = i.arguments;
|
|
var r1d = i.data;
|
|
var r1e = i['hm']; // should be Object
|
|
|
|
var x: {
|
|
new(): number;
|
|
apply(a: any, b?: any): void;
|
|
call(thisArg: number, ...argArray: number[]): any;
|
|
}
|
|
|
|
var r2: (a: any, b?: any) => void = x.apply;
|
|
var r2b: (thisArg: number, ...argArray: number[]) => void = x.call;
|
|
var r2c = x.arguments;
|
|
var r2d = x.data;
|
|
var r2e = x['hm']; // should be Object
|
|
|
|
//// [objectTypeWithConstructSignatureHidingMembersOfExtendedFunction.js]
|
|
var i;
|
|
var r1 = i.apply;
|
|
var r1b = i.call;
|
|
var r1c = i.arguments;
|
|
var r1d = i.data;
|
|
var r1e = i['hm']; // should be Object
|
|
var x;
|
|
var r2 = x.apply;
|
|
var r2b = x.call;
|
|
var r2c = x.arguments;
|
|
var r2d = x.data;
|
|
var r2e = x['hm']; // should be Object
|