提交 a127cd71 编写于 作者: C Chris Sienkiewicz

PR Feedback

上级 00770d4d
......@@ -295,7 +295,7 @@ protected override ImmutableArray<PendingBranch> Scan(ref bool badRegion)
{
if (compilation.LanguageVersion < MessageID.IDS_FeatureNullableReferenceTypes.RequiredVersion() ||
attribute.Constructor is null ||
!compilation.SyntaxTrees.Contains(attribute.SyntaxTree))
!compilation.SyntaxTrees.Contains(attribute.SyntaxTree)) // don't analyze speculative attributes
{
return;
}
......
......@@ -4755,7 +4755,7 @@ class E { }
// public MyAttribute(string s, string s2 = null) { } //1
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").WithLocation(4, 46),
// (10,21): warning CS8625: Cannot convert null literal to non-nullable reference or unconstrained type parameter.
// [MyAttribute("str", null)] // 3
// [MyAttribute("str", null)] // 2
Diagnostic(ErrorCode.WRN_NullAsNonNullable, "null").WithLocation(10, 21)
);
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册