mirror of
https://github.com/swc-project/swc.git
synced 2024-12-18 19:21:33 +03:00
23 lines
320 B
TypeScript
23 lines
320 B
TypeScript
declare class C1 {
|
|
x : number;
|
|
}
|
|
|
|
interface C1 {
|
|
y : number;
|
|
}
|
|
|
|
class C2 implements C1 { // error -- missing x
|
|
}
|
|
|
|
class C3 implements C1 { // error -- missing y
|
|
x : number;
|
|
}
|
|
|
|
class C4 implements C1 { // error -- missing x
|
|
y : number;
|
|
}
|
|
|
|
class C5 implements C1 { // okay
|
|
x : number;
|
|
y : number;
|
|
} |