14 lines
179 B
TypeScript
14 lines
179 B
TypeScript
|
class A {
|
||
|
foo: string;
|
||
|
}
|
||
|
|
||
|
class B extends A {
|
||
|
bar: string;
|
||
|
}
|
||
|
|
||
|
class C extends A {
|
||
|
baz: string;
|
||
|
}
|
||
|
|
||
|
var xs = [(x: A) => { }, (x: B) => { }, (x: C) => { }];
|