-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Consider interface method accessibility when generating the invoker #9019
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,6 +33,21 @@ public Task M(string arg) | |
|
||
// End regression test for https://github.com/dotnet/orleans/issues/8991 | ||
|
||
public interface IGrainWithNonPublicMethods : IGrainWithGuidKey | ||
{ | ||
internal class P1; | ||
internal Task M1(P1 arg); | ||
|
||
//protected class P2; | ||
//protected Task M2(P2 arg); | ||
Comment on lines
+41
to
+42
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This PR does not fix codegen for For those I think we should change the body to "throw unreachable" and skip the invoker completely.. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That makes sense. Good idea |
||
|
||
internal protected class P3; | ||
internal protected Task M3(P3 arg); | ||
|
||
//private protected class P4; | ||
//private protected Task M4(P4 arg); | ||
} | ||
|
||
public interface IGrainWithGenericMethods : IGrainWithGuidKey | ||
{ | ||
Task<Type[]> GetTypesExplicit<T, U, V>(); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If the type is internal and the method is public, what will the value of
DeclaredAccessibilty
be?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's gonna be public, which will be downgraded to internal after the loop below.