-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Description
since super.getProperties would return a string starting with "id is" already, it should be excluded from the descendent method's return template string.
class Base {
public id: number;
getProperties() : string {
return `id is ${id}`;
}
}
class Child {
public name: string;
getProperties() : string {
return `id is ${super.getProperties()}, name is ${this.name}`;
}
}
should be
class Base {
public id: number;
getProperties() : string {
return `id is ${id}`;
}
}
class Child {
public name: string;
getProperties() : string {
return `${super.getProperties()}, name is ${this.name}`;
}
}
Metadata
Metadata
Assignees
Labels
No labels