Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.
Sign upUpdate ShouldImplementProperty() to flatten interface hierarchy #8382
Conversation
IISResetMe
added some commits
Dec 2, 2018
IISResetMe
requested review from
BrucePay and
daxian-dbw
as
code owners
Dec 2, 2018
iSazonov
requested a review
from
lzybkr
Dec 3, 2018
This comment has been minimized.
This comment has been minimized.
|
@IISResetMe Please add a commit with |
IISResetMe
changed the title
Update ShouldImplementProperty() to flatten interface hierarchy
[Feature] Update ShouldImplementProperty() to flatten interface hierarchy
Dec 3, 2018
This comment has been minimized.
This comment has been minimized.
|
@iSazonov I think we'll need to push an empty commit (or close-reopen pr) to trigger the tests again |
This comment has been minimized.
This comment has been minimized.
|
@IISResetMe push an empty commit that contains the tag |
IISResetMe
added some commits
Dec 5, 2018
adityapatwardhan
changed the title
[Feature] Update ShouldImplementProperty() to flatten interface hierarchy
Update ShouldImplementProperty() to flatten interface hierarchy
Dec 6, 2018
IISResetMe
added some commits
Dec 6, 2018
This comment has been minimized.
This comment has been minimized.
stale
bot
commented
Jan 6, 2019
|
This PR has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed if no further activity occurs within 10 days. |
stale
bot
added
the
Review - Abandoned
label
Jan 6, 2019
This comment has been minimized.
This comment has been minimized.
|
@IISResetMe @daxian-dbw Could you please continue? |
stale
bot
removed
the
Review - Abandoned
label
Jan 6, 2019
This comment has been minimized.
This comment has been minimized.
|
@iSazonov I believe I've addressed all of @daxian-dbw's remarks, the only thing left was to run the feature tests. Am I expected to remove the |
iSazonov
assigned
daxian-dbw
Jan 13, 2019
This comment has been minimized.
This comment has been minimized.
|
@IISResetMe I think using @daxian-dbw Seems the PR is ready to merge. Please update your code review. |
This comment has been minimized.
This comment has been minimized.
Yeah, looks like we might want to include it only if |
This comment has been minimized.
This comment has been minimized.
stale
bot
commented
Feb 12, 2019
|
This PR has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed if no further activity occurs within 10 days. |
stale
bot
added
the
Review - Abandoned
label
Feb 12, 2019
This comment has been minimized.
This comment has been minimized.
|
@daxian-dbw had a chance to update this? :) |
stale
bot
removed
the
Review - Abandoned
label
Feb 15, 2019
daxian-dbw
approved these changes
Feb 19, 2019
|
Looks great. Sorry for being tardy in responding (was on a trip for the past 3 weeks). |
This comment has been minimized.
This comment has been minimized.
|
As for the Codacy report about |
IISResetMe commentedDec 2, 2018
•
edited by iSazonov
PR Summary
TypeBuilder.GetInterfaces(), as introduced in #8303 returns only the interfaces that was explicitly passed to its constructor, so the current implementation doesn't work for inherited interfaces:
In this example, ShouldImplementProperty() won't resolve ITestBase.Base and type definition fails because
get_Base()isn'tvirtual.During compilation the interface hierarchy is flattened, so we only need to resolve one level of ancestral interfaces.
PR Checklist
.h,.cpp,.cs,.ps1and.psm1files have the correct copyright headerWIP:to the beginning of the title and remove the prefix when the PR is ready.[feature]if the change is significant or affects feature tests