==== tests/cases/compiler/thisBinding.ts (1 errors) ==== module M { export interface I { z; } export class C { public x=0; f(x:I) { x.e; // e not found ~ !!! Property 'e' does not exist on type 'I'. x.z; // ok } constructor() { ({z:10,f:this.f}).f(({})); } } } class C { f(x: number) { } }