TypeScript/tests/baselines/reference/es6MemberScoping.errors.txt

23 lines
562 B
Plaintext
Raw Normal View History

tests/cases/compiler/es6MemberScoping.ts(9,21): error TS2304: Cannot find name 'store'.
2014-07-13 01:04:16 +02:00
==== 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.
~~~~~
!!! error TS2304: Cannot find name 'store'.
2014-07-13 01:04:16 +02:00
}
class Foo2 {
static Foo2():number { return 0; } // should not be an error
}