TypeScript/tests/cases/conformance/classes/members/inheritanceAndOverriding/derivedClassOverridesIndexersWithAssignmentCompatibility.ts
2014-07-12 17:30:19 -07:00

17 lines
No EOL
263 B
TypeScript

class Base {
[x: string]: Object;
}
// ok, use assignment compatibility
class Derived extends Base {
[x: string]: any;
}
class Base2 {
[x: number]: Object;
}
// ok, use assignment compatibility
class Derived2 extends Base2 {
[x: number]: any;
}