Skip to content

Commit

Permalink
Fix build for Roslyn 4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
TonEnfer committed Dec 8, 2024
1 parent 79b4f3e commit 5937091
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Riok.Mapperly/Descriptors/SymbolAccessor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,10 @@ internal bool TryUpgradeNullable(ITypeSymbol symbol, [NotNullWhen(true)] out ITy
case INamedTypeSymbol { TypeArguments.Length: > 0 } namedSymbol:
var upgradedTypeArguments = namedSymbol.TypeArguments.Select(UpgradeNullable).ToImmutableArray();
upgradedSymbol = namedSymbol
.ConstructedFrom.Construct(upgradedTypeArguments, [.. upgradedTypeArguments.Select(ta => ta.NullableAnnotation)])
.ConstructedFrom.Construct(
upgradedTypeArguments,
upgradedTypeArguments.Select(ta => ta.NullableAnnotation).ToImmutableArray()
)
.WithNullableAnnotation(NullableAnnotation.Annotated);
break;

Expand Down

0 comments on commit 5937091

Please sign in to comment.