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