33 lines
1 KiB
Plaintext
33 lines
1 KiB
Plaintext
=== tests/cases/compiler/defaultIndexProps1.ts ===
|
|
class Foo {
|
|
>Foo : Foo, Symbol(Foo, Decl(defaultIndexProps1.ts, 0, 0))
|
|
|
|
public v = "Yo";
|
|
>v : string, Symbol(v, Decl(defaultIndexProps1.ts, 0, 11))
|
|
>"Yo" : string
|
|
}
|
|
|
|
var f = new Foo();
|
|
>f : Foo, Symbol(f, Decl(defaultIndexProps1.ts, 4, 3))
|
|
>new Foo() : Foo
|
|
>Foo : typeof Foo, Symbol(Foo, Decl(defaultIndexProps1.ts, 0, 0))
|
|
|
|
var q = f["v"];
|
|
>q : string, Symbol(q, Decl(defaultIndexProps1.ts, 6, 3))
|
|
>f["v"] : string
|
|
>f : Foo, Symbol(f, Decl(defaultIndexProps1.ts, 4, 3))
|
|
>"v" : string, Symbol(Foo.v, Decl(defaultIndexProps1.ts, 0, 11))
|
|
|
|
var o = {v:"Yo2"};
|
|
>o : { v: string; }, Symbol(o, Decl(defaultIndexProps1.ts, 8, 3))
|
|
>{v:"Yo2"} : { v: string; }
|
|
>v : string, Symbol(v, Decl(defaultIndexProps1.ts, 8, 9))
|
|
>"Yo2" : string
|
|
|
|
var q2 = o["v"];
|
|
>q2 : string, Symbol(q2, Decl(defaultIndexProps1.ts, 10, 3))
|
|
>o["v"] : string
|
|
>o : { v: string; }, Symbol(o, Decl(defaultIndexProps1.ts, 8, 3))
|
|
>"v" : string, Symbol(v, Decl(defaultIndexProps1.ts, 8, 9))
|
|
|