27 lines
803 B
Text
27 lines
803 B
Text
=== tests/cases/compiler/numericIndexerConstraint4.ts ===
|
|
class A {
|
|
>A : Symbol(A, Decl(numericIndexerConstraint4.ts, 0, 0))
|
|
|
|
foo: number;
|
|
>foo : Symbol(foo, Decl(numericIndexerConstraint4.ts, 0, 9))
|
|
}
|
|
|
|
class B extends A {
|
|
>B : Symbol(B, Decl(numericIndexerConstraint4.ts, 2, 1))
|
|
>A : Symbol(A, Decl(numericIndexerConstraint4.ts, 0, 0))
|
|
|
|
bar: string;
|
|
>bar : Symbol(bar, Decl(numericIndexerConstraint4.ts, 4, 19))
|
|
}
|
|
|
|
var x: {
|
|
>x : Symbol(x, Decl(numericIndexerConstraint4.ts, 8, 3))
|
|
|
|
[idx: number]: A;
|
|
>idx : Symbol(idx, Decl(numericIndexerConstraint4.ts, 9, 5))
|
|
>A : Symbol(A, Decl(numericIndexerConstraint4.ts, 0, 0))
|
|
|
|
} = { data: new B() }
|
|
>data : Symbol(data, Decl(numericIndexerConstraint4.ts, 10, 5))
|
|
>B : Symbol(B, Decl(numericIndexerConstraint4.ts, 2, 1))
|
|
|