27 lines
282 B
Plaintext
27 lines
282 B
Plaintext
|
=== tests/cases/compiler/numericIndexerConstraint3.ts ===
|
||
|
class A {
|
||
|
>A : A
|
||
|
|
||
|
foo: number;
|
||
|
>foo : number
|
||
|
}
|
||
|
|
||
|
class B extends A {
|
||
|
>B : B
|
||
|
>A : A
|
||
|
|
||
|
bar: string;
|
||
|
>bar : string
|
||
|
}
|
||
|
|
||
|
class C {
|
||
|
>C : C
|
||
|
|
||
|
0: B;
|
||
|
>B : B
|
||
|
|
||
|
[x: number]: A;
|
||
|
>x : number
|
||
|
>A : A
|
||
|
}
|