未验证 提交 9d52fb7a 编写于 作者: S Sam Harwell 提交者: GitHub

Merge pull request #41579 from sharwell/enable-nrt

Enable nullable reference types in projects that do not target netcoreapp3.1
......@@ -24,7 +24,7 @@
This condition will be evaluated multiple times in multi-targeted projects hence need to be careful
to only set in the inner builds, not the outer build where only $(TargetFrameworks) is defined.
-->
<DisableNullableWarnings Condition="'$(DisableNullableWarnings)' == '' AND '$(TargetFramework)' != '' AND '$(TargetFramework)' != 'netcoreapp3.1'">true</DisableNullableWarnings>
<DisableNullableWarnings Condition="'$(DisableNullableWarnings)' == '' AND $(TargetFrameworks.Contains('netcoreapp3.1')) AND '$(TargetFramework)' != '' AND '$(TargetFramework)' != 'netcoreapp3.1'">true</DisableNullableWarnings>
</PropertyGroup>
<PropertyGroup Condition="'$(DisableNullableWarnings)' == 'true'">
......
......@@ -50,7 +50,7 @@ internal sealed class EEMetadataReferenceResolver : MetadataReferenceResolver
public override ImmutableArray<PortableExecutableReference> ResolveReference(string reference, string? baseFilePath, MetadataReferenceProperties properties)
=> throw ExceptionUtilities.Unreachable;
public override bool Equals(object other)
public override bool Equals(object? other)
=> throw ExceptionUtilities.Unreachable;
public override int GetHashCode()
......
......@@ -155,7 +155,7 @@ public override bool Equals(Diagnostic? obj)
throw new NotImplementedException();
}
public override bool Equals(object obj)
public override bool Equals(object? obj)
{
throw new NotImplementedException();
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册