TypeScript/tests/baselines/reference/thisBinding.errors.txt
2014-07-12 17:30:19 -07:00

24 lines
462 B
Plaintext

==== 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(<I>({}));
}
}
}
class C {
f(x: number) {
}
}