Skip to content

Commit

Permalink
Readd condition.
Browse files Browse the repository at this point in the history
  • Loading branch information
333fred committed Mar 29, 2022
1 parent 72c3927 commit 49a53a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Compilers/CSharp/Portable/Symbols/SymbolExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -843,6 +843,6 @@ internal static bool HasAsyncMethodBuilderAttribute(this Symbol symbol, [NotNull
internal static bool IsRequired(this Symbol symbol) => symbol is FieldSymbol { IsRequired: true } or PropertySymbol { IsRequired: true };

internal static bool ShouldCheckRequiredMembers(this MethodSymbol method)
=> !method.HasSetsRequiredMembers;
=> method is { MethodKind: MethodKind.Constructor, HasSetsRequiredMembers: false };
}
}

0 comments on commit 49a53a5

Please sign in to comment.