Skip to content

Commit

Permalink
Update SourcePropertyAccessorSymbol.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
Youssef1313 authored Nov 22, 2021
1 parent cc46f63 commit 02ea394
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ protected SourcePropertyAccessorSymbol(
{
_property = property;
_isAutoPropertyAccessor = isAutoPropertyAccessor;
Debug.Assert(isAutoPropertyAccessor == (property as SourcePropertySymbolBase)?.IsAutoProperty);
Debug.Assert(isAutoPropertyAccessor == property.IsAutoProperty);
Debug.Assert(!_property.IsExpressionBodied, "Cannot have accessors in expression bodied lightweight properties");
_isExpressionBodied = !hasBody && hasExpressionBody;
_usesInit = usesInit;
Expand Down

0 comments on commit 02ea394

Please sign in to comment.