Address more comments and remove temp test.

I added the temp test by mistake.
This commit is contained in:
Nathan Shively-Sanders 2016-02-16 13:00:21 -08:00
parent 41bb446865
commit a014edf55a
2 changed files with 2 additions and 11 deletions

4
src/lib/core.d.ts vendored
View file

@ -215,7 +215,7 @@ interface Function {
* @param thisArg The object to be used as the this object.
* @param argArray A set of arguments to be passed to the function.
*/
apply<T,U>(this: (this: T, ...argArray: any[]) => U, thisArg: T, argArray?: any): U;
apply<T, U>(this: (this: T, ...argArray: any[]) => U, thisArg: T, argArray?: any): U;
apply(this: Function, thisArg: any, argArray?: any): any;
/**
@ -223,7 +223,7 @@ interface Function {
* @param thisArg The object to be used as the current object.
* @param argArray A list of arguments to be passed to the method.
*/
call<T,U>(this: (this: T, ...argArray: any[]) => U, thisArg: T, ...argArray: any[]): U;
call<T, U>(this: (this: T, ...argArray: any[]) => U, thisArg: T, ...argArray: any[]): U;
call(this: Function, thisArg: any, ...argArray: any[]): any;
/**

View file

@ -1,9 +0,0 @@
//@strictThis: true
interface A { a: number; m(this: this): number }
interface B { b: number, m(this: this): number }
interface C { c: number; m(): number }
let a: A;
let ab: A | B;
let abc: A | B | C;
// ab.m().length;
abc.m().length; // should be OK? this: any, right?