提交 c39cf0eb 编写于 作者: X xdtao

use ConvertedType instead of Type to determine if param array has been passed

上级 f6c95ab0
......@@ -204,7 +204,7 @@ private static bool IsValidFormatMethod(ISyntaxFacts syntaxFacts, SyntaxNode exp
}
var expression = syntaxFacts.GetExpressionOfArgument(argsArgument);
return semanticModel.GetTypeInfo(expression).Type;
return semanticModel.GetTypeInfo(expression).ConvertedType;
}
protected SyntaxNode? TryGetArgument(
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册