interface F { (): number; } class C { constructor(public a: T, public b: F) {} foo() { if (this.a instanceof this.b) { } } }