Skip to content

Commit

Permalink
Exclude the compiler generated Obsolete attribute from types using `r…
Browse files Browse the repository at this point in the history
…equired`
  • Loading branch information
ericstj committed Jul 14, 2022
1 parent f163617 commit 8052e5b
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,8 @@ private static bool ExcludeSpecialAttribute(ICustomAttribute c)
if (arg?.Value is string)
{
string argValue = (string)arg.Value;
if (argValue == "Types with embedded references are not supported in this version of your compiler.")
if (argValue == "Types with embedded references are not supported in this version of your compiler." ||
argValue == "Constructors of types with required members are not supported in this version of your compiler.")
{
return true;
}
Expand Down

0 comments on commit 8052e5b

Please sign in to comment.