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

20 lines
455 B
Plaintext

==== tests/cases/compiler/es6MemberScoping.ts (1 errors) ====
class Foo {
constructor(store: string) { }
public foo() {
return this._store.length;
}
public _store = store; // should be an error.
~~~~~
!!! Cannot find name 'store'.
}
class Foo2 {
static Foo2():number { return 0; } // should not be an error
}