提交 b262b06c 编写于 作者: P pgavlin

CR feedback for the recent Color Color fix.

***NO_CI***
 (changeset 1405238)
上级 41d57cd5
......@@ -2387,7 +2387,7 @@ Namespace Microsoft.CodeAnalysis.VisualBasic
Dim boundType = Me.BindNamespaceOrTypeExpression(node, typeDiagnostics)
If boundType.Type = leftType Then
Dim err As ERRID = Nothing
If isInstanceMember AndAlso (Not CanAccessMe(implicitReference:=True, errorId:=err) OrElse Not ContainingType.IsOrDerivedFrom(leftSymbol.ContainingType, Nothing)) Then
If isInstanceMember AndAlso (Not CanAccessMe(implicitReference:=True, errorId:=err) OrElse Not BindSimpleNameIsMemberOfType(leftSymbol, ContainingType)) Then
diagnostics.AddRange(typeDiagnostics)
leftDiagnostics.Free()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册