Skip to content

Commit

Permalink
Merge pull request #1 from RudeySH/feature/nullable-reference-types
Browse files Browse the repository at this point in the history
IsNullable support for C# 8 nullable reference types
  • Loading branch information
AdaskoTheBeAsT committed Oct 13, 2021
2 parents a6fc811 + 1f0ef6f commit 09ed3ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Roslyn/RoslynTypeMetadata.cs
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ public IEnumerable<ITypeParameterMetadata> TypeParameters
symbol.ToDisplayString() == "System.Collections.IEnumerable" ||
symbol.AllInterfaces.Any(i =>
i.ToDisplayString() == "System.Collections.IEnumerable"));
public bool IsNullable => isNullable;
public bool IsNullable => isNullable || symbol.NullableAnnotation == NullableAnnotation.Annotated;
public bool IsTask => isTask;

public static ITypeMetadata FromTypeSymbol(ITypeSymbol symbol)
Expand Down

0 comments on commit 09ed3ea

Please sign in to comment.