Skip to content

For the purpose of runtime capability check require RuntimeFeature type to be a static class.#50829

Merged
AlekseyTs merged 1 commit intodotnet:masterfrom
AlekseyTs:Issue50491
Jan 28, 2021
Merged

For the purpose of runtime capability check require RuntimeFeature type to be a static class.#50829
AlekseyTs merged 1 commit intodotnet:masterfrom
AlekseyTs:Issue50491

Conversation

@AlekseyTs
Copy link
Contributor

This avoids going into a cycle while trying to compile malformed declaration of the type.
Fixes #50491.

…pe to be a static class.

This avoids going into a cycle while trying to compile malformed declaration of the type.
Fixes dotnet#50491.
@AlekseyTs AlekseyTs requested a review from a team as a code owner January 27, 2021 17:29
Copy link
Member

@jcouv jcouv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM Thanks (iteration 1)

@jcouv jcouv self-assigned this Jan 27, 2021
@AlekseyTs
Copy link
Contributor Author

@dotnet/roslyn-compiler Please review, need a second sign-off.


internal bool RuntimeSupportsUnmanagedSignatureCallingConvention
=> GetSpecialTypeMember(SpecialMember.System_Runtime_CompilerServices_RuntimeFeature__UnmanagedSignatureCallingConvention) is object
=> RuntimeSupportsFeature(SpecialMember.System_Runtime_CompilerServices_RuntimeFeature__UnmanagedSignatureCallingConvention)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is probably going to conflict with #50845.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(Not that I'm saying hold off, just that it's a race)

{
public static partial interface RuntimeFeature
{
public const string DefaultImplementationsOfInterfaces = nameof(DefaultImplementationsOfInterfaces);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: empty line below.

@AlekseyTs AlekseyTs merged commit d525bcf into dotnet:master Jan 28, 2021
@ghost ghost added this to the Next milestone Jan 28, 2021
333fred added a commit to 333fred/roslyn that referenced this pull request Jan 28, 2021
* upstream/master:
  For the purpose of runtime capability check require RuntimeFeature type to be a static class. (dotnet#50829)
  Allow mixed declaration and assignment in deconstruction (dotnet#44476)
  Disable sdl
  Fix crash around handling delegating of constructors cross-project
  Clarify in a comment when some stuff loads
  Don't reference the implementation type directly if we don't need it
  Remove the CreateWorkspace() method that implies it's created there
  Delete AbstractPackage`2.IsInIdeMode()
  Remove some very outdated comments
@RikkiGibson RikkiGibson modified the milestones: Next, 16.10.P1 Feb 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Stack Overflow when compiling RuntimeFeature as an interface without runtime libraries

4 participants