-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Closed
Labels
Area-CompilersBugDocumentationResolution-DuplicateThe described behavior is tracked in another issueThe described behavior is tracked in another issueVerified
Milestone
Description
According to its specification, the type should be defined
namespace System.Runtime.CompilerServices
{
/// <summary>
/// Indicates that the interface may be implemented only by a type in the same assembly
/// as the attributed interface or a type in an assembly that has InternalsVisibleTo the
/// attributed interface's assembly.
/// </summary>
[AttributeUsage(AttributeTargets.Interface)]
public class InternalImplementationOnlyAttribute : Attribute
{
public InternalImplementationOnlyAttribute() { }
}
}But the documentation of the actual type as checked in incorrectly implies that there is a constraint on the accessibility of implementations:
namespace System.Runtime.CompilerServices
{
/// <summary>
/// This is a marker attribute that can be put on an interface to denote that only internal implementations
/// of that interface should exist.
/// </summary>
[AttributeUsage(AttributeTargets.Interface, AllowMultiple = false)]
internal sealed class InternalImplementationOnlyAttribute : Attribute
{
}
}Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Area-CompilersBugDocumentationResolution-DuplicateThe described behavior is tracked in another issueThe described behavior is tracked in another issueVerified