-
Notifications
You must be signed in to change notification settings - Fork 246
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(go): unable to re-use instances between child/parent interfaces
The go runtime was not tracking aliases in a way that enabled it to return an alternate proxy to an object instance when that had previously been returned as a different, singular interface. This change keeps tack of the "first ever" registered instance against a given InstanceID (as this is likely the one that was natively constructed), but also to all proxy aliases to the same InstanceID, so that it can later return an existing proxy that can be converted to a desired type. Fixes #2688
- Loading branch information
1 parent
6e850ee
commit 654ef83
Showing
4 changed files
with
47 additions
and
12 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
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