forked from aws/jsii
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(jsii): excessive overrides declarations registered (aws#3375)
Members inherited from parent base classes, which also implemented a locally implemented interface member, would get tagged with the `overrides` marker for the interface, which was incorrect, since the declaring type did not implement the interface directly. This is solved by passing the inherited members by-copy to the validator, so side effects of it aren't visible to the final assembly. --- By submitting this pull request, I confirm that my contribution is made under the terms of the [Apache 2.0 license]. [Apache 2.0 license]: https://www.apache.org/licenses/LICENSE-2.0
- Loading branch information
1 parent
ae4ea62
commit 64a5984
Showing
14 changed files
with
737 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
export interface IIndirectlyImplemented { | ||
readonly property: string; | ||
method(): number; | ||
} | ||
|
||
export abstract class BaseClass { | ||
public readonly property = 'YES'; | ||
|
||
protected constructor() {} | ||
|
||
public method(): number { | ||
return 1337; | ||
} | ||
} | ||
|
||
export class FullCombo extends BaseClass implements IIndirectlyImplemented { | ||
private constructor() { | ||
super(); | ||
} | ||
|
||
// Obtains implementation of IIndirectlyImplemented from BaseClass | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.