27 lines
836 B
Text
27 lines
836 B
Text
=== tests/cases/compiler/indexerA.ts ===
|
|
class JQueryElement {
|
|
>JQueryElement : Symbol(JQueryElement, Decl(indexerA.ts, 0, 0))
|
|
|
|
id:string;
|
|
>id : Symbol(JQueryElement.id, Decl(indexerA.ts, 0, 21))
|
|
}
|
|
|
|
class JQuery {
|
|
>JQuery : Symbol(JQuery, Decl(indexerA.ts, 2, 1))
|
|
|
|
[n:number]:JQueryElement
|
|
>n : Symbol(n, Decl(indexerA.ts, 5, 5))
|
|
>JQueryElement : Symbol(JQueryElement, Decl(indexerA.ts, 0, 0))
|
|
}
|
|
|
|
var jq:JQuery={ 0: { id : "a" }, 1: { id : "b" } };
|
|
>jq : Symbol(jq, Decl(indexerA.ts, 8, 3))
|
|
>JQuery : Symbol(JQuery, Decl(indexerA.ts, 2, 1))
|
|
>id : Symbol(id, Decl(indexerA.ts, 8, 20))
|
|
>id : Symbol(id, Decl(indexerA.ts, 8, 37))
|
|
|
|
jq[0].id;
|
|
>jq[0].id : Symbol(JQueryElement.id, Decl(indexerA.ts, 0, 21))
|
|
>jq : Symbol(jq, Decl(indexerA.ts, 8, 3))
|
|
>id : Symbol(JQueryElement.id, Decl(indexerA.ts, 0, 21))
|
|
|