-
Notifications
You must be signed in to change notification settings - Fork 13.1k
Closed
Labels
Working as IntendedThe behavior described is the intended behavior; this is not a bugThe behavior described is the intended behavior; this is not a bug
Description
TypeScript Version: 2.7.0-dev.20171215
Code
class ServerService {
public getData(){
this.privateGetData() + 2;
};
private privateGetData(){
return 2;
};
}
abstract class Client implements ServerService {
getData():void;
}Expected behavior:
.d.ts
declare class ServerService {
getData(): void;
}Compile success
Actual behavior:
TS2420: Class 'Client' incorrectly implements interface 'ServerService'.
Property 'privateGetData' is missing in type 'Client'.
.d.ts
declare class ServerService {
getData(): void;
private privateGetData();
}Metadata
Metadata
Assignees
Labels
Working as IntendedThe behavior described is the intended behavior; this is not a bugThe behavior described is the intended behavior; this is not a bug