19 lines
No EOL
255 B
TypeScript
19 lines
No EOL
255 B
TypeScript
class Base {
|
|
static foo: {
|
|
bar: Object;
|
|
}
|
|
}
|
|
|
|
class Derived extends Base {
|
|
// ok
|
|
static foo: {
|
|
bar: number;
|
|
}
|
|
}
|
|
|
|
class Derived2 extends Base {
|
|
// ok, use assignability here
|
|
static foo: {
|
|
bar: any;
|
|
}
|
|
} |