mirror of
https://github.com/swc-project/swc.git
synced 2024-12-19 11:42:13 +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;
|
||
|
}
|