mirror of
https://github.com/swc-project/swc.git
synced 2024-12-01 01:13:56 +03:00
24 lines
314 B
TypeScript
24 lines
314 B
TypeScript
class Foo {
|
|
private x: string;
|
|
}
|
|
|
|
interface I extends Foo {
|
|
y: number;
|
|
}
|
|
|
|
class Bar implements I { // error
|
|
}
|
|
|
|
class Bar2 implements I { // error
|
|
y: number;
|
|
}
|
|
|
|
class Bar3 implements I { // error
|
|
x: string;
|
|
y: number;
|
|
}
|
|
|
|
class Bar4 implements I { // error
|
|
private x: string;
|
|
y: number;
|
|
} |