mirror of
https://github.com/swc-project/swc.git
synced 2024-12-26 15:12:08 +03:00
35 lines
469 B
TypeScript
35 lines
469 B
TypeScript
// merged interfaces behave as if all extends clauses from each declaration are merged together
|
|
// no errors expected
|
|
|
|
class C<T> {
|
|
a: T;
|
|
}
|
|
|
|
class C2<T> {
|
|
b: T;
|
|
}
|
|
|
|
class C3<T> {
|
|
c: T;
|
|
}
|
|
|
|
class C4<T> {
|
|
d: T;
|
|
}
|
|
|
|
interface A<T> extends C<string>, C3<string> {
|
|
y: T;
|
|
}
|
|
|
|
interface A<T> extends C<string>, C4<string> {
|
|
z: T;
|
|
}
|
|
|
|
class D implements A<boolean> {
|
|
a: string;
|
|
b: Date;
|
|
c: string;
|
|
d: string;
|
|
y: boolean;
|
|
z: boolean;
|
|
} |