26 lines
350 B
TypeScript
26 lines
350 B
TypeScript
//// [genericTypeWithMultipleBases1.ts]
|
|
export interface I1 {
|
|
m1: () => void;
|
|
}
|
|
|
|
export interface I2 {
|
|
m2: () => void;
|
|
}
|
|
|
|
export interface I3<T> extends I1, I2 {
|
|
//export interface I3<T> extends I2, I1 {
|
|
p1: T;
|
|
}
|
|
|
|
var x: I3<number>;
|
|
x.p1;
|
|
x.m1();
|
|
x.m2();
|
|
|
|
|
|
|
|
//// [genericTypeWithMultipleBases1.js]
|
|
var x;
|
|
x.p1;
|
|
x.m1();
|
|
x.m2();
|