mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
30 lines
882 B
Plaintext
30 lines
882 B
Plaintext
//// [tests/cases/compiler/es6MemberScoping.ts] ////
|
|
|
|
=== es6MemberScoping.ts ===
|
|
class Foo {
|
|
>Foo : Symbol(Foo, Decl(es6MemberScoping.ts, 0, 0))
|
|
|
|
constructor(store: string) { }
|
|
>store : Symbol(store, Decl(es6MemberScoping.ts, 1, 16))
|
|
|
|
public foo() {
|
|
>foo : Symbol(Foo.foo, Decl(es6MemberScoping.ts, 1, 34))
|
|
|
|
return this._store.length;
|
|
>this._store : Symbol(Foo._store, Decl(es6MemberScoping.ts, 5, 5))
|
|
>this : Symbol(Foo, Decl(es6MemberScoping.ts, 0, 0))
|
|
>_store : Symbol(Foo._store, Decl(es6MemberScoping.ts, 5, 5))
|
|
}
|
|
public _store = store; // should be an error.
|
|
>_store : Symbol(Foo._store, Decl(es6MemberScoping.ts, 5, 5))
|
|
}
|
|
|
|
class Foo2 {
|
|
>Foo2 : Symbol(Foo2, Decl(es6MemberScoping.ts, 7, 1))
|
|
|
|
static Foo2():number { return 0; } // should not be an error
|
|
>Foo2 : Symbol(Foo2.Foo2, Decl(es6MemberScoping.ts, 9, 12))
|
|
|
|
}
|
|
|